WorkflowModelManager - Global

The WorkflowModelManager class provides a way to query the workflow model, to step backwards and forwards between specified wf_history items, and to query the history for activity and transition-specific information.

The interaction with the WorkflowModelManager class is through the ActivityHistoryRecord data object. The ActivityHistoryRecord is an inner class and is only used while interacting with WorkflowModelManager.

To acquire the executed history of the workflow activities:
var model = new WorkflowModelManager('myContextId');
var activities = model.getExecutedHistory();
To output the playback of the workflow:
var model = new WorkflowModelManager('myContextId');
model.getExecutedHistory();
model.playBack();

At this time, the playBack is required to load the executed transitions. This will also play a role in walking backwards on a model to rollback to a specific activity.

To see the details of the cached model:
var model = new WorkflowModelManager('myContextId');
 model.getExecutedHistory();
 model.dump();