In this example, we have 2 processes, with the first process "Workflow Process 1" containing a Subflow calling the second process "Workflow Process 2".
Figure 1: Workflow Process 1 with Subflow to Workflow Process 2
...
- Start of process "Workflow Process 1"
- "Activity 1" started.
- "Activity 1" completed with "firstStatusstatus" set to "a".
- Subflow process started. As the parameter is set to "In and Out", the value "a" is now set to "secondStatussub_status" of the subflow process.
- "Activity 3" started with "secondStatussub_status" initialized to "a".
- "Activity 3" completed with "secondStatussub_status" set to "ab".
- "Activity 4" started with "secondStatussub_status" initialized to "ab".
- "Activity 4" completed with "secondStatussub_status" set to "abc".
- The subflow process has now come to an end. As the parameter is set to "In and Out", the value "abc" is now returned to "firstStatusstatus" of the parent process. "Activity 2" started with "firstStatusstatus" set to "abc".
Sample app to demonstrate use of parameters in subflow process for Joget Workflow Enterprise v6: APP_process_subflow_parameter.jwa
Related Elements