Connectors / Trigger / Callable Trigger

 (updated: 1507802650056)

Callable Trigger

A trigger that is called by other workflows

Overview

The callable trigger is useful for breaking up larger workflows and for creating common modules that can be reused in multiple workflows.

When configuring a long and perhaps complex Workflow, before progressing to the next stage in your Workflow, you may wish to gather some or all of the data that has been generated thus far and send it to a Callable Workflow to be processed separately.

The Basic setup below is a very quick example of how to set up a callable trigger.

Please see our page on Using Callable Workflows for more detailed guidance on when to use Callable Workflows, and how to follow best practices.

IMPORTANT! Replaying callable workflows: It is not possible to replay 'Fire and wait for response' (Trigger and respond) callable workflows as it would “wake up” the parent workflow and re-run any subsequent steps. 'Fire and Forget' (Trigger) callable workflow executions can be replayed from within the callable workflow, as they are decoupled from any particular parent execution context. To replay these workflows you will need to initiate another run of the parent workflow. Please see our Logs documentation for more info on replaying workflow runs.

Basic setup

Important note on Disabling Callable workflows

IMPORTANT!: Disabling callable workflows is something that needs to be managed very carefully.

It is possible to have several workflows calling one "Callable workflow".

Therefore Tray has the built-in protection of not allowing callable workflows to be disabled. This is to prevent any workflows from returning errors.

So if you do wish to disable a callable workflow, this must be done by using a Terminate connector.

In order for this to be effective, it must be placed before the the connector steps themselves.

callable-trigger-wf-called-terminate

This will have the effect of disabling the workflow, without creating any errors in workflows that call it.

All Operations

Latest version:

2.0

Trigger

Trigger a workflow from another workflow and discard response

Trigger and respond

Trigger a workflow from another workflow and return response to the caller workflow