Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this example, we have 2 processes, with the first process "Workflow Process 1" containing a Subflow calling the second process "Workflow Process 2".Image Removed

 

Figure 1: Workflow Process 1 with Subflow to Workflow Process 2

Workflow Process 1 has one three declared workflow variable named "firstStatus"."status", "name" and "email". We will pass these three variables to Subflow Workflow Process 2.

Image Added

 Image Removed

Figure 2: Workflow Process 2

Workflow Process 2 has one three declared workflow variable named "secondStatus"."sub_status", "sub_name" and "sub_email". The Subflow will return these three workflow variables to Workflow Process 1.

Maintain the sequence of the fields when passing from parent to subflow process. Both the "status" & "sub_status" field id should be in the first parameter row.

Image Added

Subflow Properties

Title

Description

Id

Process to be called

Execution

Synchronous: calls and creates the subflow instance and waits for the subflow process to finish before continuing to the next node in the workflow process
Asynchronous: calls the subflow process and continues to the next node in the process, without waiting

Subflow Parameters / Actual Parameters

Workflow variables in the subflow process to be mapped with the existing workflow variables in the current workflow process. The number of entries in Subflow Parameters and Actual Parameters should be identical.

Id: Workflow Variable ID
Mode:

  • In: pass the value from the current workflow process's variable to the subflow process's variable only upon calling up the subflow process.
  • Out: pass the value from the subflow workflow process's variable to the current workflow process's variable only upon completion of the subflow process.
  • In and Out: a combination of the above

Example:

 

In the screenshot above, the subflow process will be executed synchronously. Parameter is set to "In and Out".

...

Sample app to demonstrate use of parameters in subflow process for Joget Workflow Enterprise v6: APP_5736_subform_param.jwa