i
Types of Scheduled Tasks
There are different types of scheduled tasks defined in the environment.
Based on Business Rule Execution
This task type allows scheduling the automatic execution of a business rule.
It is necessary to authorize the system user, SYSUSER, for the execution of this rule. For this, authorization must be included in the SYSUSER login permission.
When configuring the scheduled task, specify the business rule to execute.
Deyel offers some predefined scheduled tasks of this type, which allow for different processes to be performed.
Deyel can connect to an email server to read messages received in a specific account.
To configure the integration with this email server, the Mail Reader adapter is used.
When activating a task of this type, it verifies the reception of emails in the account configured in this adapter.
When this task is executed, Deyel checks the receipt of emails in the configured account. For each email received, an email-type event is triggered and announced to all processes that are waiting for the occurrence of such events..
Deyel offers such a task within the scheduled tasks that are predefined.
It is possible to define new scheduled tasks of this type to allow for different schedules. For example, a first task scheduled to run from Monday to Friday from 9 a.m. to 6 p.m. and a second task scheduled to run on Saturdays from 9 a.m. to 1 p.m.
In the process modeler, start events or border events that are of "Rule" type can be modeled. The occurrence of these events is directly linked to a scheduled task of this type. When defining the event, the scheduled task whose execution generates the events is selected.
This type of task executes a business rule and with the results of that execution, a rule-type event is triggered, which is announced to all processes waiting for the occurrence of such events.
The business rule to be executed is specified when creating and configuring the task.
In the process modeler, start events or border events that are of "File" type can be modeled. This type of event occurs when a new file appears that meets the conditions modeled in the event.
When a task of this type is activated, Deyel checks for the appearance of new files in a given folder.
For each new file detected, an event of "File" type is triggered, which is announced to all processes waiting for the occurrence of such events.
Deyel offers such a task within the scheduled tasks that are predefined.
New scheduled tasks of this type can be defined to allow for different schedules. For example, a first task scheduled to run from Monday to Friday from 9 a.m. to 6 p.m. and a second task scheduled to run on Saturdays from 9 a.m. to 1 p.m.
Generates Alerts for Activities
When a task of this type is activated, the activities that are being executed are verified and the need to issue alerts is analyzed. Considering the definition of alerts modeled in each activity, the corresponding notifications are sent by email.
There is a task of this type within the scheduled tasks that are predefined.
Scheduled tasks of this type are automatically created by Deyel when a process with an active timer is published. Likewise, they are automatically deleted when the timer is removed or deactivated in the process.
Each of these tasks is associated with a timer-type event in a specific process.
The functionality of this scheduled task is to control the elapsed time and, according to the frequency indicated in that event, communicate its occurrence to the process.