The multicast workflow component can be used, if you want to create multiple outputs from a single input file. You e.g. might want to create a PDF file, an email and a print output from a single input XML file.
To do that the multicast component can branch out to one or many sub-trees, that contains workflow components.
If you want to create multiple outputs like described here, then you might think, that you could also simply add the new components after each other, but that is normally not possible as the payload (the data transferred from one component to the next) is changed to the output of an output component. So generally you need at least to compare the input and output payload of components to verify if they can be used in a sequential execution.
You can create many branches on a multicast component, but if you need more than around 10 branches, then you should consider to group them and call a sub-workflow for each group to make it easier to keep an overview of all the branches and the logic, that they represent.
This section contains information of how to:
1.Adding branches and sub-components to a multicast component.
2.How to delete branches
3.How to copy branches
4.Workaround to insert any component in a multicast
You see this, after you have inserted a multicast element:
Out of the box there is only a single branch, but if you click the + icon to the right of the multicast element (as marked above), then you can insert a component for the current branch and a new empty branch is added:
In the example above we have added the create PDF file component to the first branch and at the same time a new empty branch is added below as shown above.
Now you can add components to the second branch, and when you do that a new, third (empty) branch is added etc.
A new branch will always be added to the bottom of the branches, but if you want to rearrange/move branches, then you can do that by copying a deleting branches.
If you want to delete a branch in a multicast component, then you should place the mouse over the first component in the branch and click on the round icon:
Now you can select Detele sub-tree to delete the complete branch (including the selected component and any component connected to it).
(Remember you can undo/redo any workflow change with the arrow keys on the top right in the workflow editor).
If you want to copy a branch, then you first need to copy the branch into the clipboard. To do that you first place the mouse over the first component in the branch and click on the round icon:
Now click the Copy sub-tree to clipboard option in the pop up window:
And now you click the lowest + icon to the right of the multicast component. When you click it, then this pop up window is shown:
Here you click Paste from clipboard to insert the contents of the clipboard i.e. insert the copy of the branch:
Workaround to insert any element inside a multicast