Task Timeout
If in a receive task, the process instance job is waiting for the incoming message, but the message is not arriving in appropriate time. Then the process needs to send out an notification event of such a situation after the time out period.
To setup time out in the task (for example, the Receive Message task) of a process, create a scheduler rule function task before the task (Receive Message). The scheduler rule function schedules invocation of a event, which starts another process. You can use the Cluster.scheduleEvent catalog function in the rule function for scheduling the event after the specified time interval. While creating the new event, pass the process ID and next activity name that would be performed in case of a timeout.
This scheduled event is the message start event for another process. The new process consists of activities that need to be performed after the time interval. For a simple time out process, create a rule-function task, and call the Process.Activity.moveTo catalog function to move to the specified process and activity which were passed by the scheduler (for example, the activity after the Receive Message task).