WorkflowModelManager - getFinalExecutedActivityIdList( )

Gets the list of wf_history.sys_ids of all activities that successfully executed and were not rolled back or skipped up to the moment the function was called.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
TypeDescription
String Array Array of wf_history.sys_id values for executed activities.

var model = new WorkflowModelManager('ee3e0a053b101000dada82c09ccf3d7c');
      model.getExecutedHistory();
      var finals = model.getFinalExecutedActivityIdList();
      gs.print(' EXECUTION PATH IDs --------------- : '  + finals.length);
      
      for ( var x = 0; x < finals.length; x++ ) {
          gs.print(finals[x] );
      }