Identifying the State of a Workflow

When a subflow is initiated, a pre-defined variable isSubFlow is set to true. Using this variable, you can find out whether a workflow is running as a subflow.

This applies even when a workflow is initiated in the asynschronous mode.

The state of the subflow is independent of the calling workflow even though both workflows are part of the same event.