Community

Timer trigger in Junit test

created by Sameeh Harfoush in jBPM - View the full discussion

Hello

I am using the <timer> in a transition to fire after a specific duedate. My test-case is in a JUnit test and when I run the JPDL workflow the timer never fires the transition and I am firing the timer explicitly to test my workflow. Note that the JBPM database is logging the timer and setting the process as waiting

 

Is there a configuration that I do in order for the timer to fire by its own, Or should I deploy the workflow in a web container in order for the scheduler to run properly?

 

 

<transition g="433,186;435,673:-43,-16" name="Manager timeout"  to="Send timesheet to accounts">
                <timer duedate="20 seconds" />
</transition>

 

Thank you

Reply to this message by going to Community

Start a new discussion in jBPM at Community