WorkflowModelManager - getPreviousByExecutedOrderId(String haRecordSysId)

Retrieves the history activity cached by the wf_history.sys_id provided in the argument, then calls getPreviousByExecutedOrder() with the retrieved JavaScript object.

Table 1. Parameters
Name Type Description
haRecordSysId String Workflow history system ID (wf_history.sys_id)
Table 2. Returns
TypeDescription
ActivityHistoryRecordThe ActivityHistoryRecord JavaScript object requested.

var model = new WorkflowModelManager('contextId');
      model.getExecutedHistory();
      var current = model.getActivityHistoryRecordById('wf_history.sys_id');
      current.debugDump();
      
      var results = model.getPreviousByExecutedOrderId(current.sys_id);
      results.debugDump();