-
1. Re: jbpm5.x bpmn timer datetime format
krisverlaenen Jul 25, 2011 9:54 AM (in response to sasir)In the example you mentioned, a hardcoded value of 1 day is used but you can also inject a variable here, the same way you can do for service task parameters for example.
So you should be able to also specify something like #{x}ms (where x is a process variable containing the amount of ms, e.g. 10), or #{y} (where y is a process variable containing the entire expression, e.g. 10h).
Kris
-
2. Re: jbpm5.x bpmn timer datetime format
sasir Jul 25, 2011 10:00 AM (in response to krisverlaenen)Kris, Thanks for replying
I want to be able to inject procee variables(values are derived using specific business logic) in standard data time format rather than letting the bpm engine derive expiry time
For example i want the task deadline to be reached at a particular input time so that timer should also expire at that time (dd-MMM-yyyy HH:mm:ss). To put it simply, its more like passing value rather than expression
-
3. Re: jbpm5.x bpmn timer datetime format
krisverlaenen Jul 25, 2011 11:03 AM (in response to sasir)Ok, got it. BPMN2 defines 3 types of timer expressions: timeDuration (trigger after a certain amount of time), timeCycle (trigger repeatedly) and timeDate (trigger on a specific date and time). It seems you're looking for the last one. Unfortunately, only the first two options are currently supported in jBPM5.
I'll look at adding support for this: https://issues.jboss.org/browse/JBPM-3298
As a workaround for now, I think it should be possible to use timeDuration as described earlier, but then add some action script before that that would translate the generated date and time variable back into a duration variable.
Kris