Defines a Procedure object that returns a numeric value indicating the amount of time to wait, where the unit of time is defined by the Time Unit Property.
This procedure is used in the Lapse Expression Procedure Property of the Timer Intermediate Events. Once the amount of time to wait is returned the deadline willl be checked by the Deadline Checker on every cycle until the deadline is reached.
The Procedure object must be defined with the following Procedure rules:
parm(in:&WorkflowProcessDefinition, in:&WorkflowProcessInstance, in:&WorkflowWorkitem, out:&deadline);
Where:
&WorkflowProcessDefinition type is: WorkflowProcessDefinition
&WorkflowProcessInstance type is: WorkflowProcessInstance
&WorkflowWorkitem type is: WorkflowWorkitem
&deadline type is: Numeric(10)
&WorkflowProcessDefinition, &WorkflowProcessInstance and &WorkflowWorkitem are input variables which gives you access to the context of the process instance. On the other side the &deadline variable is an output that indicates how much time has to be elapsed in order for the workflow to continue.
For the following Business Process Diagram:
And the following procedure source code:
&deadline = 1
The Deadline Checker will check on every cycle the deadline. The workflow will continue one day after the procedure defined in the Lapse Expression Procedure Property - "ProcSetDeadline" - is executed.
Objects: Business Process Diagram object
Business Process Diagram Symbols: Timer Intermediate Event
Lapse Expression Type Property
Lapse Expression Procedure Property
Time Unit Property