Unofficial Content
  • This documentation is valid for:

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.

Structure

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)

Description

&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.

Example

For the following Business Process Diagram:

TimerIntermediateEvent

TimerIntermediateEventProps

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.

Scope

ObjectsBusiness Process Diagram object
Business Process Diagram Symbols: Timer Intermediate Event

See Also

Lapse Expression Type Property

Lapse Expression Procedure Property

Time Unit Property

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant