Java Reference
In-Depth Information
Executing an Activity at a Specific Point in Time
Problem
You want your business process to wait until a specific point in time before it executes the
next block of code, such as an invoke activity.
Solution
Use the <wait until="..."> activity to make the process wait until a specific deadline is
reached. Supply a value to the until attribute using the XPath expression syntax for a dead-
line.
Discussion
The complete expression syntax for deadlines is shown in Table 10-1 .
Table10-1.XPath deadline expression values
Value
Meaning
T
Time designator, indicating that the following values represent the time of day.
C
Centuries.
Y
Years.
M
Months.
D
Days.
h
Hours.
m
Minutes.
s
Seconds. You can use ss.sss to represent greater precision with milliseconds.
Z
UTC time (Coordinated Universal Time). This element should immediately follow the time of day
element ( T ).
There are a few ways to represent deadlines with more or less precision, as shown in the fol-
lowing example.
This timer will expire on New Year's Eve, 2010, a second before midnight:
<wait until="2010-12-31T23:59:59+01:100"/>
Search WWH ::




Custom Search