cancel
Showing results for 
Search instead for 
Did you mean: 

Issue on start event timeCycle

masch
Champ in-the-making
Champ in-the-making
Hi!
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">
      <timerEventDefinition>
        <timeCycle>0 0/1 * * * ?</timeCycle>
      </timerEventDefinition>
    </startEvent>

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
masch

4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Masch,

It is hard to guess.
Could you create jUnit test?
https://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin

masch
Champ in-the-making
Champ in-the-making
Hi Martin,

I could create a unit test, but i think it will work because the state of the database. Do you think you can reproduce it if I attach the mysql dump and the proyect that i use? How can i attach a zipped file in the topic?

Thank you!


martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

I do not have mysql installed locally.

regards
Martin

martin_grofcik
Confirmed Champ
Confirmed Champ
zip -> just rename the attachment