VMware Cloud Community
StefanSchnell
Enthusiast
Enthusiast

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

AttributeTypeDescription
namestringReturns the name
descriptionstringReturns the description
nextItemWorkflowItemReturns the nextItem
nextItemTrueWorkflowItemReturns the next item if condition is true
nextItemFalseWorkflowItemReturns the next item if condition is false
scriptstringReturns the script
referencedWorkflowWorkflowReturns the referenced workflow
referencedActionActionReturns the referenced action

 

WorkflowForeachItem

AttributeTypeDescription
namestringReturns the name
descriptionstringReturns the description
nextItemWorkflowItemReturns the nextItem
loopInnerCatchBlockstringReturns the script of the iteration error handler
iterationElementWorkflowReturns the workflow which is to be iterated

 

WorkflowSwitchItem

AttributeTypeDescription
namestringReturns the name
descriptionstringReturns the description
nextItemWorkflowItemReturns the nextItem
outItemsarray of WorkflowItemeturns the go to targets of the switch case
conditionsarray of stringReturns 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.


More interesting information at blog.stschnell.de

0 Replies