It is a type of action that allows you to send data from a subprocess to a parent process.
Why is it important? If you are using subprocesses that produce data that needs to be sent back to the main process, you can do that by using an Append Params to Parent Process action.
After you create a process designed to be used as a subprocess, you can configure the action. To do this, you need to add an Append Params to Parent Process on a Task node in the subprocess.
The following properties must be configured:
PT30S
)To recap: if you have a Copy from current state with a simple JSON -{"age": 17}
, that needs to be available in the parent process, on the application.client.age
key, you will need to set this field (Destination in the parent state) with application.client
, which will be the key to append to in the parent process.
Advanced configuration
${parentProcessInstanceId}
variable, if you defined it when you started the subprocessData to send option is configurable only when the action trigger type is Manual.
We have a subprocess that allows us to enter the age of the client on the data.client.age key, and we want to copy the value back to the parent process. The key to which we want to receive this value in the parent process is application.client.age.
This is the configuration to apply the above scenario:
Parameters
{"client": ${data.client.age}}
to copy the age of the client (the param value we want to copy)application
to append the data o to the application key on the parent processAdvanced configuration
${parentProcessInstanceId}
to copy the data on the parent of this subprocess