VCF Automation Blog

from Stefan Schnell

Note of Undocumented WorkflowItem Classes


A workflow can contain a variety of different items. Many of these items have their own classes to use their specific attributes and methods. But not all classes are documented in the API Explorer. Here three WorkflowItem classes with their attributes:

WorkflowDecisionActivityItem

Attribute Type Description
name string Returns the name
description string Returns the description
nextItem WorkflowItem Returns the nextItem
nextItemTrue WorkflowItem Returns the next item if condition is true
nextItemFalse WorkflowItem Returns the next item if condition is false
script string Returns the script
referencedWorkflow Workflow Returns the referenced workflow
referencedAction Action Returns the referenced action

WorkflowForeachItem

Attribute Type Description
name string Returns the name
description string Returns the description
nextItem WorkflowItem Returns the nextItem
loopInnerCatchBlock string Returns the script of the iteration error handler
iterationElement Workflow Returns the workflow which is to be iterated

WorkflowSwitchItem

Attribute Type Description
name string Returns the name
description string Returns the description
nextItem WorkflowItem Returns the nextItem
outItems array of WorkflowItem Returns the go to targets of the switch case
conditions array of string Returns the conditions of the switch case

Knowing what items are available is important for analyzing workflows, so knowing how to determine them is also important.