Parallel Processor

Overview

The parallel processor is used to create multiple parallel processing branches so that multiple branch tasks can be executed at the same time. If you want to use the merged branch execution result in subsequent steps, use the simple expression ${body} to reference the merge result.

Configuration

Table 1 Parallel Processor

Parameter

Description

Merge Output Format

Format of the merge result. Currently, only JSON is supported, indicating that the merge result is output in JSON character string format.

You can use either of the following methods to obtain the result of a branch:

  • If the subsequent node is Script, use JSON.parse('${body}') to convert the merge result into a JSON object, and then obtain the branch result based on the branch name. For example:

    var result=JSON.parse('${body}');

    var branch_result=result.branch name

    Or

    var branch_result=result ['Branch name']

  • If the subsequent node is Variable Assignment, Routing, Splitter, or Filter, use $.branch name of the JSONPath type to obtain the execution result of the branch.

Stop On Failure

True: When an error occurs in any parallel processor branch, the entire task stops and an error message is returned.

False: When an error occurs in the parallel processor branch, the entire task continues to be executed on subsequent nodes.

Timeout (Milliseconds)

Maximum execution time of the parallel processing. If a branch task is not completed after the time specified by this parameter elapses, the branch task will be discarded and will not be included in the final merge result.

If this parameter is set to 0, the system waits till all branch tasks are complete.

  • The branch name of each Parallel Processor node needs to be configured on the connection line between adjacent nodes.