Introduction
Every process needs a trigger to start the process. In Job Stream, Events are created with Out Conditions and can be used as In Conditions to trigger the next process. But there is some scope for Events through which process can be executed.
The Events are accessible for today with In Condition <event_name>and events created before the period are not accessible by any JobStream.
Types of Events
There are three types of Events available in the Job Stream.
- Event Consumed in the same workflow.
- Event Consumed in a different workflow.
- Event Consumed in a different master
- Events that have a calculation of creation date.
Event Consumed in the same workflow
The job creates an event when its Out Condition validates to true and this event can be used as an expression in the In Condition of other jobs within the same Job Streams for further execution are called local events. These events can be created and deleted from the Out Condition of any job within the same Job Stream.
If the events are created in the workflow it can be accessible today. The Job Stream runs only once a day and the next execution is only done after the period is completed. If you want to rerun the Job Stream in the same period you need to reset Job Stream by clicking the RESET button.
Event Consumed in a different workflow.
The job creates an event when its Out Condition validates to true and the event can be used as an expression in the In Condition of other jobs in the different Job Streams for start further execution.
If the events are created in the different Job Stream it can be accessible for today. When any JobStreamA creates a <eventA> with a jobs Out Condition and then it can be consumed by all the In Condition of all Job Stream by using the expression <eventA>.
Event Consumed in a different master.
The scope of events between different master is also called as Global events. The events are accessible in multiple JobScheduler within the same database. Once the Global Event is created we can use it as an In Condition and Out Condition of the same or different JobScheduler masters. The global events are accessible only for today by using the expression <global:eventA> in Conditions
Refer to the article on Global Events for details.
Events that have a calculation of creation date.
The events created today are accessible with the <event_name> but the events which are not accessible and created before today are used with the calculation of creation date. In the In Condition of any Job Stream, the event can be accessed using the expression <event_name[date_for_creation]>.
The events can be accessed using the below expression in In Conditions if they are not created today.
- event_name[yesterday]: Search for the events created yesterday.
- event_name[month.day_of_month]: Search for the events created on the day of the month e.g event1[4.28]: search for the event created on 28'April.
- event_name[yesterday-3]: The expression calculates the value 3 days before yesterday.