0 Replies Latest reply on Oct 25, 2011 6:09 PM by dme

    How does Timer work in jBPM 5

    dme

      Hi,

       

      I have created a process and attached a boundary timer to the subprocess (as shown in the timer examples) for fire after 500ms. The subprocess has a script with a sleep for 2000ms, and I was expecting the timer to fire and interrupt the sub-process, but in my case the timer never fires. Can someone please advise how I can make the timer to fire to interrupt the subprocess. I have attached the process files and the Java code to run the process below.

       

      I tried using timeCycle and timeDuration but the timer did not fire in either case.

       

      This is a simple use case I was trying, the real requirement is to call a WebService and provide a Timer as the boundary event, which should fire if the service call does not return in the specified time period. I get similar problem when testing with my webservice call implementation.

       

      Thanks.