Clone Workable
With this node you can create an exact copy of the workable, for example to do parallel processing.
Normally all steps of a flow are executed in sequential order when a workable passes through the nodes of a flow. However, you can execute several nodes at the same time with the Clone Workable node. The workable that enters the node will be copied one or several times and includes the complete history. The next nodes (regardless whether they process the original workable or the cloned workable) will see exactly the same information for all workables. All workables follow a completely independent path.
At the end you have two choices:
- You are not interested in the history of the cloned workables. In that case, you can end the cloned path(s) with the End node.
- You want to continue at a certain point in your flow when all cloned workables are processed. In that case, you need to use the Join Workables node, where the original workable and all cloned workables come back together. All the workables will wait in that node until all of them are ready. The information from all workables is combined in the original workable. All cloned workables will be removed from the system and the original workable continues.
The node has the following configuration options:
- Clones: here you can specify the names of the output connectors to where a clone/copy of the workflow will be send. You can specify more than one output connector.
Note: Parallel processing is only useful when you have a system that can handle several nodes at
the same time.