AnsweredAssumed Answered

Timer start events -- what happens when I restart Activiti?

Question asked by blezek on Nov 23, 2011
Latest reply on Nov 23, 2011 by ronald.van.kuijk

  Perhaps someone can clarify this for us.  I've read the guide and the Javadocs, but am not sure about the expected behavior.

  We have embedded Activiti in our server process.  Periodically, we want to collect Metrics on the running system.  Easy enough, just define a workflow in Designer that starts with:
     <startEvent id="timerstartevent1" name="Start">
        <timeCycle>0 * * * * ?</timeCycle>
When first deployed, this works as expected.  Each minute some statistics are collected in our database.  However, if we restart the server, this workflow does not seem to restart.  That is, the deployment is persisted properly, but it is no longer scheduled to "fire".

Is there a recommended way to have a TimerStartEvent re-start when the Activiti server restarts?  Is this the expected behavior?