Wednesday, August 3, 2011

Using Timers in BPM11g

Here is the only occasion where I must admit the official docs left me somewhat puzzled.

It shows examples such as 'now' + 20 which one could take as an indication on how to set a timer for current date time + 20 (hours, seconds ??)

My scenario is very simple - accept a file, wait a certain amount of time and then write the file.



So now I want to set this wait to 15 seconds -



This may seem pretty cryptic -

xp20:add-dayTimeDuration-to-dateTime(xp20:current-dateTime(), string('PT15S'))

PT15S - PT are just constants -

P1Y1DT1H1S

so 3 days are P3D
3 hours PT3H

Check out Antony's blog posting for the why's etc.

http://blogs.oracle.com/reynolds/entry/whats_the_time_mr_bpel

No comments: