trigger.result action

trigger.result is used for events returning data. It obtains the result from the trigger event and performs further actions using the trigger results. It will display results even if the execution terminates in failure.

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

Action

Trigger.result is found under the Trigger action.

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

dynamic

If the dynamic event is selected then the following form appears when you drag the trigger.result action.

When the trigger.result action is used within a dynamic sub-trigger (invoked via dynamic.exec), the value defined in the Output parameter is returned to the calling (main) trigger.

This output can then be accessed in the main trigger context using the result of the dynamic execution (through the action that invoked the sub-trigger).

Ensure that the Output field is properly defined in the sub-trigger, as it determines the data is made available to the parent trigger after execution.

Parameters

Name Type Required Descriptions
Output String The output values.

http.receive

 If the http.receive event is the event selected then the following form appears when you drag the trigger.result action.

Parameters

Name
Type
Required
Descriptions
Status String Yes The Status of the response. For example 200 for a successful response. The Status needs to contain the standard codes defined by the HTTP Spec.
Content type String Type of data that will be contained in the body.
Headers Array Additional information passed between the server and the client in the form of key: value pairs.
Body String Yes Type of data that will be contained in the body.