Wait
BPMN Implementation: Timer catch event
The wait activity tells the business process to wait for a given time period or until a certain time has passed.
The wait expression conforms to an expression, where the value is an XML schema type of dateTime, date, or duration.
Required Properties | Optional Properties |
---|
Wait Expression | |
Wait Type | |
|
|
|
|
|
|
To build a wait activity
- 1. Drag a Timer catch event to the Process Editor canvas.
- 2. In the Properties view, select a Wait Type: Duration or Deadline. You can select a static duration or deadline or create an expression.
- 3. Select the duration or deadline static control or click the Dialog (...) Button next to Deadline or Duration Expression.
- 4. In the Expression box, specify one of the following:
- - For a deadline, specify a date and time, such as '2010-12-12T12:00'. Be sure to include the single quotes.
- - For a duration, specify a time, such as 'P1DT10S'. Be sure to include the single quotes.
In addition to the few examples below for deadline and duration expressions, you can see the examples given in the XML schema specification.
The following illustration shows an example of using a wait activity.
See the following:
- •http://www.w3.org/TR/xmlschema-2/#duration
- •http://www.w3.org/TR/xmlschema-2/#datetime
- •http://www.w3.org/TR/xmlschema-2/#date
XML Syntax
<wait (for="duration-expr" |
until="deadline-expr")standard-attributes>
standard-elements
</wait>
Examples:
- •A duration of one second:
<wait for="'PT1S'"/>
- •A duration of 1 year, 2 months, 3 days, 10 hours, and 30 minutes:
<wait for= "‘P1Y2M3DT10H30M' "/>
- •A deadline with a date and time:
<wait until="'2010-12-12T12:00'"/>