Start Subprocess Action
Using subprocesses is a good way to split the complexity of your business flow in multiple, simple and reusable processes. After you create a process designed to be used a a subprocess, you will need to start it from another (parent) process. To do this, you need to add a Start Subprocess Action on a Task Node from the parent process.
To start a new subprocess, there are 4 important values that can/should be configured:
  1. 1.
    parentProcessInstanceId - id of the current process, to allow the subprocess to communicate with the parent process (which is the process where this action is configured)
  2. 2.
    subProcessName - name of the process that you want to start as a subprocess
  3. 3.
    withoutParams - what fields you want to exclude when copying the data from the parent process to the subprocess (by default all data fields are copied)
  4. 4.
    paramsToCopy - if a value is set here, it will overwrite the default behaviour (of copying the whole data) with copying just the data that is specified

Example

To start a subprocess, we can for example do a minimum configuration:
  1. 1.
    parentProcessInstanceId - ${processInstanceId} - current process id
  2. 2.
    subProcessName - subprocessDemoProcess - name of the process that we want to start as a subprocess
  3. 3.
    withoutParams - ["client"] - copy all the data from the parent, except the client data
  4. 4.
    paramsToCopy - we leave this field empty in order to copy all the data (except the keys that are specified in the withoutParams field)
Last modified 6mo ago
Copy link
Contents
Example