Hi,

I am trying to retrieve the duedate of the timer that i specified below

  | <task-node name="task1">
  |        <task swimlane="tester" duedate="40 seconds">
  |                     <controller>
  |                     <variable name="Test comments"/>
  |                     </controller>
  |                     
  |                     <timer duedate="20 seconds" repeat="10 seconds" 
transition="continue">
  |                            <action 
class="org.jbpm.mennen.DoNothing"></action>
  |                     </timer>
  |        </task>
  |        
  |       <transition name="continue" to="task2"/>
  |  </task-node>
  | 

In the action within the timer (DoNothing),I am getting the duedate of the 
executionContext like this:

executionContext.getTaskInstance().getDueDate();

But I am getting the due date of the task and not the due date of the timer.. 
How can I get the due date of the timer??

I looked in the Java Doc and all i found was that i'd have to include something 
like this in my action in order to get the due date of the timer
Scheduler.getSchedulerHistoryLogs().getTimer().getDueDate();

But how can i get this scheduler from my execution context in the action? All i 
get from within the action is SchedulerInstance, which has nothing to do with 
Scheduler itself..

Thanks in advance
_______________
Mennen Elkalyoubi

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923863#3923863

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923863


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to