The Subscribe event in Mozart Orchestrator enables you to create an intermediate trigger based on events occurring in an external application. The Subscribe event utilizes the web triggers available in the Control Room to subscribe and listen for events in an external application.
Overview
The Subscribe event enables you to add and configure web triggers to subscribe and listen for events in the connected external application. The process orchestration pauses when it reaches this intermediate trigger node and waits until the subscribed events occur in the external application. When the event occurs in the application, the application sends event details as trigger response data back to the Control Room and process orchestration resumes the execution.
The Subscribe event contains a Correlation setting that sets a unique identifier to match the incoming event data in the process instance. The identifier includes the key and its corresponding value in the trigger response data. The process orchestration resumes only when the trigger response data matches the defined correlation key and value. This setting allows you to resume the process based on a specific key-value pair in the response data.
The Timeout setting in Subscribe event specifies the maximum duration that the process must pause before resuming. The process skips the Subscribe event if it does not receive any response from the external application.
The Subscribe event supports all the web triggers available in the Control Room including the Universal Listener trigger.
Settings
The following settings are available in the Subscribe event settings:
- Element ID
- Specifies an internal reference for the task during design. The value must be unique within the process.
- Task name (optional)
- Specifies a name for the task. This name appears as a reference during process execution.
- Hide this task after completion
- Specifies whether to hide the task after it completes.
- Source
- Select a web trigger from the Source drop-down to set it as the source for the Subscribe event. The drop-down lists all web triggers available in the Control Room. For more information about each web trigger, see the corresponding topics.
- Correlation (Optional)
- Specifies a unique identifier to match and verify the incoming event data
from the configured application. The Correlation
requires the specific key and its corresponding value from the trigger
response data.
- Key: Specifies the key to match the event information in the trigger response data.
- Value: Specifies the corresponding value of the key.
- Time interval
- Specifies the maximum duration to wait for the event. Use the timer module to enter the duration in days, hours, minutes, and seconds.