Triggers

Triggers are events or conditions that initiate execution of a workflow. A combination of below events can initiate a workflow using an OR condition.

Asset Triggers

Workflows can be triggered when the specified asset events below are used as triggers for a workflow.

1. Create Asset

When a new asset is created, the workflow is triggered. To define the trigger, select the 'create asset' trigger and then choose the asset(s) from the dropdown list.

2. Update Asset

When an existing asset property is updated, the workflow is triggered. To define the trigger, select the 'update asset' trigger and then choose the asset(s) from the dropdown list.

3. Delete Asset

The workflow is triggered when an existing asset gets deleted. To define the trigger, select the 'delete asset' trigger and then choose the asset(s) from the dropdown list.

4. Update Owner

The workflow is triggered when the owner of an asset is updated. To define the trigger, select the 'update owner' trigger and then choose the asset(s) from the dropdown list.

5. Approval Action

The workflow is triggered when an approval action is initiated. To define the trigger, select from the list of previously created approval actions in other workflows. The list will be empty if no approval actions have been created yet.

See how to create an approval action in the workflow #create-approval


Scheduled Triggers

1. Oracle Scheduler

The workflow is triggered when an oracle is initiated and fetched external data. To define the trigger, select from the list of available schedulers configured in the channel.

See how to create an oracle scheduler Step 3: Oracle Scheduler

2. Scheduled Time

The workflow is triggered at a defined time based on the configured cron expression. To define the trigger, select the trigger 'At Scheduled Time'

  • Enter the cron expression

    1. minutes- Allowed value: 0-59 Allowed special characters: , - * / Example: 10 for 10th minute of an hour, Ranges: 1-10 for first 10 minutes of an hour, List: 1-10, 30 for first 10 minutes and 30th minute of an hour, Steps values: 0-59/2 for every 30 minutes Unrestricted: * for all possible values

    2. hours- Allowed value: 0-23 Allowed special characters: , - / *

    3. days (month)- Allowed value: 0-31 Allowed special characters: , - / *

    4. months- Allowed value: 0-11 Allowed special characters: , - / *

    5. day(week)- Allowed value: 0-7 Allowed special characters: , - / *


Token Triggers

Workflows can be triggered when the specified token events below are used as triggers for a workflow.

1. Mint Token

When a token is minted, the workflow is triggered. To define the trigger, select the 'mint token' trigger and then choose the token(s) from the dropdown list.

2. Burn Token

When a token is burnt, the workflow is triggered. To define the trigger, select the 'burn token' trigger and then choose the token(s) from the dropdown list.

3. Transfer Token

When a token is transferred, the workflow is triggered. To define the trigger, select the 'transfer token' trigger and then choose the token(s) from the dropdown list.

Last updated