In Sitecore Content Hub, triggers are easily configurable via the User Interface. This section explains the Trigger's main configuration page.
Trigger's configuration page
The trigger configuration page is composed of 3 tabs:
- General: Where the general details are specified like the trigger's name, description, objective (event) and execution type.
- Conditions: Where the conditions are specified.
- Actions: Where the actions are specified.
The trigger objective is the event to which the trigger reacts.
Sitecore Content Hub supports 3 types of trigger events:
- Entity creation: The trigger reacts when any entity is created.
- Entity modification: The trigger reacts when any entity is modified.
- Entity deletion: The trigger reacts when any entity is deleted.
Reacting to an event doesn't necessarily mean the trigger's actions are being executed. The trigger's actions are only executed if the specified conditions are met.
Trigger's execution type
The trigger's execution type is the method via which the trigger's actions are executed.
Sitecore Content Hub supports 2 execution types:
- In Process: The InProcess execution type means the trigger's actions are executed in real-time in a synchronous way.
- In Background: The InBackground execution type means the trigger's actions are executed via a background job in an asynchronous way.
The In Process execution type has 5 execution phases in which actions can be executed. For more information about execution phases, please refer to the Trigger actions section.
The In Background execution type only supports one execution phase: post actions. For more information about execution phases, please refer to the Trigger actions section.
The In Process execution type should not be used for UI-related interactions or any time consuming operations.