Trigger configuration settings are grouped into three tabs:
- General: where you specify general details such as name, description, trigger objective (event) and trigger execution type.
- Conditions: where you specify trigger conditions.
- Actions: where you specify trigger actions.
The trigger objective
On the General tab, you specify the trigger objective, which is the event to which the trigger reacts. Sitecore Content Hub™ supports three types of trigger events:
Entity creation: use if you want the trigger to react when any entity is created.
Entity modification: use if you want the trigger to react when any entity is modified.
Entity deletion: use if you want the trigger to react when any entity is deleted.
Reacting to an event does not necessarily mean that the trigger's actions are executed. The trigger's actions only execute if the specified conditions are met.
The trigger execution type
On the General tab, you also specify the trigger execution type, which is the method with which the trigger's actions execute. Content Hub supports two execution types:
In Background: trigger actions execute using an asynchronous background job. With this execution type, trigger actions can only execute during the post phase.
Post phase means that the actions execute after the trigger's event takes place.
In Process: trigger actions execute in real time in a synchronous way. With this execution type, trigger actions can execute in five different phases:
Pre-commit: in this phase, actions execute before the triggering event's execution.
Validation: in this phase, actions execute when the application validates the triggering event's data.
Security: in this phase, actions execute when the application asserts the triggering user's permissions.
Audit: in this phase, action scripts execute after the triggering event's data is finalized.
Post: in this phase, action scripts execute after the triggering event is finalized.
Do not use the In Process execution type for UI-related interactions or any time-consuming operations.
Can we improve this article ? Provide feedback