Triggers

PUBBLICATA

In workflow templates, a trigger is the occurrence of a specific event that initiates the workflow instance.

Each action in the contract has its own trigger type, according to the trigger type of the associated workflow template.

Each workflow template is associated with a trigger, which links the action to a specific type of event, such as the arrival of a new file, a specific timing, and so on.

Every contract action is linked to its corresponding trigger.

The association chain works as follows:

  • An action within any contract is associated with a workflow.

  • That workflow is, in turn, associated with a trigger.

This structure ensures that when a specific action is performed, the appropriate workflow is activated based on its predefined trigger conditions.

Several trigger types exist, each designed to initiate data transfer under specific events:

  • Time: the action starts at scheduled intervals or specific times, such as daily at 6 a.m.

  • OnDemand: the action starts through a direct REST API invocation.

  • Incoming transfer: the action starts when a file arrives.

  • Incoming update metadata: the action starts when a file metadata is modified through a REST API invocation.

  • New File: the action starts when the file is written on the VFS specified in the contract.

  • Outgoing transfer: the action starts when a file leaves Data Mover.

  • VirtualBox bind: the action starts when a virtual box is bound to a file.

  • VirtualBox unbind: the action starts when the virtual box is unbound from a file.

  • OnMessage: the actions execution starts when a JMS message arrives.

Each trigger type can have associated execution variables, which are added at runtime. For example, in the New File trigger, an execution variable named file of type FileDetail is added. Its attributes are set based on the information sent from the event that initiated the trigger.

Last updated