AnsweredAssumed Answered

Issue on start event timeCycle

Question asked by masch on May 28, 2016
Latest reply on May 31, 2016 by martin.grofcik
I am trying to use Activiti and after some Spring boot integration I have an issue on start event, using timeCycle on timerEventDefinition. I have a simple process with 2 tasks using Mysql DB:

1. Service task prints a text on the log in a Java class.
2. Shell task writes a log on a file.

I have to execute this process every X times so it starts with the next start Event:
    <startEvent id="timerstartevent1" name="Timer start">
        <timeCycle>0 0/1 * * * ?</timeCycle>

I wrote a Spring REST Controller with two method:
1. Deploy the process attached in this topic.
2. Run the process.

The example runs as expected in the firsts calls, but after a few runs it does not work at all. I call the method and it does not execute the cycle. I redeploy the process several times and nothing happens. The only way that i found to make it work again is recreating  the mysql database with ActityExplorer. Do you know why it does not work again?

Thank you very much