Walks the workflow and gets the list of successors for each activity along with a shortest path order that indicates the activity depth in the workflow.

Walkworkflow - computeFullSequences()

Computes the full sequence for every path.

Does not combine paths at Join activities. After calling this method, call getSequences() to yield the computed sequences.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
void

Walkworkflow - computeSequences()

Computes the sequences of activities.

All sequences leading up to a join end at the join and then a single sequence from the join is computed. This ensures that all sequences can be walked up to a join, and then the sequence can be walked from the join. After calling this method a call to getSequences() will yield the computed sequences.

Table 3. Parameters
Name Type Description
None
Table 4. Returns
Type Description
void

Walkworkflow - dump()

Outputs the internal state of this class to gs.print().

Table 5. Parameters
Name Type Description
None
Table 6. Returns
Type Description
void

Walkworkflow - dumpSequences()

Outputs the sequences internal to this class to gs.print().

Table 7. Parameters
Name Type Description
None
Table 8. Returns
Type Description
void

Walkworkflow - dumpShortestPathOrders( description)

Outputs the shortest path orders internal to this object to gs.print().

Table 9. Parameters
Name Type Description
None
Table 10. Returns
Type Description
void

Walkworkflow - getActivitiesAtOrder(Number order)

Returns all the activities at the specified shortest path order.

Table 11. Parameters
Name Type Description
order Number The order number the client is interested in.
Table 12. Returns
Type Description
String Array An array of activity sys_ids at the specified order. If an empty array is returned, there are no more activities.

Walkworkflow - getSequences( )

Returns the activity sequences.

The walk() method must have been called prior to calling this method.

Table 13. Parameters
Name Type Description
None
Table 14. Returns
Type Description
String A string of |-delimited sequences. Each sequence is a comma-delimited list of activity ids (table wf_workflow_activity).

Walkworkflow - walk(Boolean fullSequences)

Walks the workflow and sets up the activity shortest path ordering.

After calling this method the client would call the various accessor methods to obtain relevant data about the workflow.

Table 15. Parameters
Name Type Description
fullSequences Boolean (Optional) If true, computes the full sequences. Default is false.
Table 16. Returns
Type Description
void

Walkworkflow - Walkworkflow(GlideRecord workflowVersion)

Constructor for Walkworkflow class.

Table 17. Parameters
Name Type Description
workflowVersion GlideRecord GlideRecord on table wf_workflow_version of the workflow version to analyze.
Table 18. Returns
Type Description
Workflow Workflow object just created.