Example of Parent or Calling Workflow

An example of a parent workflow is as follows:

<Activity Name="TestSubflow">
<Action>InitiateSubFlow</Action>
<Description>Spawn the subworkflow for generation of DBDump</Description>
<Execution>SYNCHR</Execution>
<Parameter direction="in" type="string" eval="constant" name="eventState">SPAWNWORKFLOW</Parameter>
<Parameter direction="in" type="string" eval="constant" name="ProcessID">standard/workflow/wfin26Test1</Parameter>
<Parameter direction="in" type="document" eval="variable" name="InDocument">inDoc</Parameter>
<Parameter direction="in" type="String" eval="constant" name="InStatus">TestInStatus</Parameter>
<Parameter direction="out" eval="variable" type="String" name="status">finalStatusx</Parameter>
<Parameter direction="out" eval="variable" type="boolean" name="statusFlag">finalStatusFlagx</Parameter>
<Parameter direction="out" eval="variable" type="long" name="statusValue">statusValuex</Parameter>
<Parameter direction="out" eval="variable" type="recorList" name="outRecordList1">workRecordList</Parameter>
<Parameter direction="out" eval="variable" type="string" name="Testunknown">unknownValue</Parameter>
</Activity>

Input Parameters

This activity has the following input parameters which are passed to the subflow. Note that the parameters received by the subflow are controlled by the input parameters defined in the subflow.

  • eventState — defined as constant
  • inDocument — passed as inDoc
  • InStatus — defined as constant

Output Parameters

This activity expects the following output parameters:

  • outRecordList1 — Record List. The value is assigned to the local variable workRecordList.
  • statusFlag — Boolean. Value is assigned to the local variable finalStatusFlagx.
  • status — String. Value is assigned to the local variable finalStatusx.
  • statusValue — Long. Value is assigned to the local variable statusValuex.
  • Testunknown — String. Value is assigned to the local variable unknownValue.