Issue on start event timeCycle

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2016 09:50 PM
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
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
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2016 05:37 AM
Hi Masch,
It is hard to guess.
Could you create jUnit test?
https://forums.activiti.org/content/sticky-how-write-unit-test
Regards
Martin
It is hard to guess.
Could you create jUnit test?
https://forums.activiti.org/content/sticky-how-write-unit-test
Regards
Martin

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2016 09:26 AM
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!
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!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2016 02:50 AM
Hi,
I do not have mysql installed locally.
regards
Martin
I do not have mysql installed locally.
regards
Martin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2016 02:50 AM
zip -> just rename the attachment
