dynamic.exec action

The dynamic.exec trigger action is used to invoke a sub trigger. 

Action

This trigger action is found under the Trigger heading.

Canvas

When dragged onto the canvas, the appearance of the action is a rectangle with two routing points.

The left routing point (red) is the failure route. This route will be taken if there is an error during execution.

The right routing point (green) is the success route. This route will be taken if action executes successfully.

Form

Parameters

Name
Type
Required
Descriptions
Key String Yes The key of the dynamic.exec.
Timeout String  The amount of time to wait for the dynamic.exec to execute the sub-trigger.

If the timeout is omitted, the sub-trigger will be executed as a fire-and-forget trigger. If you want output, a timeout must be specified.,

Input String or JSON The input must be a string or a JSON object. If invoked with a string, then $(event.input) will be a simple string value, if JSON is passed to the input, then it will be an object. If an object, then JSON like {"value":10} will be accessed as $(event.input.value).
Example:

Key = abc

Input = {"value":10}

A trigger with a dynamic event key = abc is called and the input 10 is passed. For a more detailed example, see object.iterator action.

Action variables

Name
Type
Description
$(action.X.value) ANY The value of return variable. The return value can be of any type(Integer, String or Object).