To run an existing chain as part of another chain, add a Run Chain event. With this event, you can use chains independently or as modular components within other chains. When you run a chain as a Run Chain event, you can use its output with a later command in the parent chain.
Note: If you include multiple Run Chain events in a chain and need to pass variables between chains, start the later chain with a Runtime Input trigger event.
Step 1. Add the event to the chain
- In Chain Builder, from the Chains tab, click Edit for the chain.
- Click Chain Events , and move Run Chain to where the event should occur in the chain.
- Drag a link to the event from its preceding node.
Step 2. Set up the chain to run
- Select the event's node, and click Edit
- Under Basic Info, enter a unique name and description to help identify the event.
- To run the chain repeatedly within the other chain, enable Iterations, and set up the iterator.
- Select the chain to run.
Step 3. Add a skip condition (if necessary)
To run the chain based on branching logic, you can set up a skip condition and automatically return a specific result.
- Under Skip
Note: A warning status will not stop the chain in progress and any downstream nodes will still be run.
, choose whether to automatically return a result of info , warning , or error for the event's chain when skipped. - To specify when to skip the event, build the conditional logic as a group you add rules and other groups of rules to, each joined with an AND or OR.
- If all conditions must be true to skip, select AND.
- If only one condition must be true, select OR.
Data Type Description String Two or more characters Integer Any whole, non-decimal numeric value Date Any date string or Date variable Float Any numeric value JSON JavaScript Object Notation; use Variable Transformation to parse objects -
Is blank
orIs not blank
Contains
-
Matches RegExp
, for regular expression -
Starts with
orEnds with
-
=
or!=
-
<
or>
-
<=
or>=
- Click Save.
Note: Before you promote the parent chain to another environment, ensure the chain run by the event exists in that environment.
View the chain run
When a run chain event is included in a parent chain, you can quickly access the subchain through the Monitor screen.
Here's how:
- From Chain Builder, click Monitor .
- Select the chain run you'd like to view.
- Click the Run Chain node in your chain graph. The chain executed by that node will appear in the results panel on the right side.
- In the results panel on the right side, use your keyboard and mouse to adjust your view of the subchain:
- Drag the canvas: Click and hold your mouse in any blank space to drag the canvas.
-
Zoom in and out: Hold down the CTRL key and scroll with the mouse wheel to zoom in and out.
- Double-click any node of your subchain to open it in a new browser tab. You can then edit, run, and view the secondary chain separately from your source chain.