[jboss-user] [JBoss jBPM] - How to set the timer duedate dynamicly
abdelak01
do-not-reply at jboss.com
Thu Oct 25 06:56:37 EDT 2007
hello,
I've just started to use JBPM, and I'd like to set the timer duedate dinamicly (using process variable). but it doesn't work;
here is my process :
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.1" name="rec_facture">
| <event type="process-start">
| <script>
| executionContext.setVariable("action_delay", "6 seconds");
| </script>
| </event>
| <start-state name="create_reclamation">
| <transition name="to_action1" to="action_"></transition>
| </start-state>
| <end-state name="end1"></end-state>
| <state name="action_">
| <timer name="actionTimer" duedate="#{action_delay}" transition="action_time_out">
| <action name="action_t" class="com.sample.action.ActionTimeOutActionHandler">
| <action_name>action_test</action_name>
| </action>
| </timer>
| <transition name="action_time_out" to="end1"></transition>
| <transition name="new_action" to="action_"></transition>
| </state>
| </process-definition>
|
when I run my test application I got this message
| ERROR GraphElement : action threw exception: improper format of duration '#{action_delay}'
|
thanks for help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098771#4098771
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098771
More information about the jboss-user
mailing list