Input to Subflow

The input that needs to be passed from the parent workflow to the subflow, must be passed as input to the InitiateSubFlow activity.

When the subflow is initiated, all input parameters passed to the InitiateSubFlow activity are passed on to the subflow. This is applicable for all subflow initiations.

A workflow can have any number of input parameters. When a workflow is called directly (not as a subflow), the only parameter usually passed to it is input document. In some cases, when a workflow is called using the SpawnWorkflow activity, a record collection may also be passed as input. Any other input parameters, if specified, will be uninitialized (null).

When the same workflow is called as a subflow, all input parameters may be initialized based on inputs specified in the calling workflow.

The input parameters of the InitiateSubFlow activity are matched with input parameters specified for the subflow. Even though the InitiateSubflow activity can have any number of input parameters, the subflow will only receive those parameters which are defined as input parameters to the workflow.