Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with JBPM Timer

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am unable to start the jbpm timer with duedate specified in timer tag, even tough if i have confugured the web.xml with job executor servlet entry, Is that there is any other settings we need to do other than this.I am using tomcat server. Please let me know if there is any other exclusive configuration settings we need to do for jbpm timer to work for tomcat.

In processdefnition.xml this is the entry i have for timer

<task-node name="Fo Officer">

<task name="FOApproval">
<assignment actor-id="FOOfficer"></assignment>

<timer name="FoTimer" duedate="2 minutes" >

<action name="RemindFOOfficer" class="org.jbpm.cashFlow.RemindFOOfficer">

</action>

</timer>
</task>
<transition to="end-state1" name="reject"></transition>
<transition to="Fo Manager" name="noResponse"></transition>
<transition to="Fo Officer" name="FoTimeout"></transition>
<transition to="FoApproved" name="approve"></transition>
</task-node>



The code within Actionhandler is

String loopCount = (String)context.getVariable("MO_EMP_APPROVAL_LOOP_COUNTER");
System.out.println("%%%%%%%loopCountloopCountloopCount"+loopCount);
if("3".equalsIgnoreCase(loopCount))
{
context.leaveNode("MoNoResponse");
} else
{

context.setVariable("MO_EMP_APPROVAL_LOOP_COUNTER", (new Integer((new Integer(loopCount)).intValue() + 1)).toString());

context.leaveNode("MoTimeout");
System.out.println("MO_EMP_APPROVAL_LOOP_COUNTER"+ (new Integer((new Integer(loopCount)).intValue() + 1)).toString());
}
 
reply
    Bookmark Topic Watch Topic
  • New Topic