WalkWorkflow - Global

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.

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
TypeDescription
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.

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
TypeDescription
void

Walkworkflow - dump()

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

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

Walkworkflow - dumpSequences()

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

Table 7. Parameters
Name Type Description
None
Table 8. Returns
TypeDescription
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
TypeDescription
void

Walkworkflow - getActivitiesAtOrder(Number order)

Gets 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
TypeDescription
String ArrayAn array of activity sys_ids at the specified order. If an empty array is returned, there are no more activities.

Walkworkflow - getSequences( )

Gets the activity sequences. The walk() method must have been called prior to calling this method.

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

Table 13. Parameters
Name Type Description
None
Table 14. Returns
TypeDescription
StringA 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.

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
TypeDescription
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
TypeDescription
WorkflowWorkflow object just created.