Timers ignore timeDate attribute
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2016 07:19 AM
Hello!
I have some obstacles with boundary timers firing time.
I have a business process which aims to send different notifications to different users.
Notifications gotta be send at the specific time that is defined in process variables (notifyWorkerDate and notifyChiefDate) - these variables can be edited during process. I also have some kind of a scheduller (usertask2) for checking if these variables were changed. These scheduller reruns itself every minute.
The problem is my scheduller resets time dates in my timers, but servicetask2 and servicatask3 are executing every minute, not at the specific time as expected!
How do I set time date in timers to fire them only once after initiating or updating variables?
A simplified scheme of the business process attached (MyProcess-1.bpmn.txt).
[IMG]http://i66.tinypic.com/iworgz.jpg[/IMG]
I have some obstacles with boundary timers firing time.
I have a business process which aims to send different notifications to different users.
Notifications gotta be send at the specific time that is defined in process variables (notifyWorkerDate and notifyChiefDate) - these variables can be edited during process. I also have some kind of a scheduller (usertask2) for checking if these variables were changed. These scheduller reruns itself every minute.
The problem is my scheduller resets time dates in my timers, but servicetask2 and servicatask3 are executing every minute, not at the specific time as expected!
How do I set time date in timers to fire them only once after initiating or updating variables?
A simplified scheme of the business process attached (MyProcess-1.bpmn.txt).
[IMG]http://i66.tinypic.com/iworgz.jpg[/IMG]
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2016 07:24 AM
I run activiti 6.0 Beta2.
Any help will be appreciated! Thank you.
Any help will be appreciated! Thank you.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2016 09:42 AM
I don't think it'll work like that: the timers don't cancel the activity … hence why they are created once and not recreated later …
It's hard to follow what you're trying to do … can you pour that process in a unit test with some assertions that show what you expect? That would help a lot.
It's hard to follow what you're trying to do … can you pour that process in a unit test with some assertions that show what you expect? That would help a lot.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2016 10:11 AM
Hello, Joram!
Are you saying that a timer can only be fired once and then its getting closed?
What I expect is to have my timers firing at the exact time without recreating them.
So is it possible to fire one timer several times during a process by editing its time date attribute? Or should i go completely another way?
Are you saying that a timer can only be fired once and then its getting closed?
What I expect is to have my timers firing at the exact time without recreating them.
So is it possible to fire one timer several times during a process by editing its time date attribute? Or should i go completely another way?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2016 08:19 AM
No, let me rephrase: the 'rerun every minute' should be happening every minute for sure.
Again, a unit test that shows which logic you expect with this process might clarify a lot here.
Again, a unit test that shows which logic you expect with this process might clarify a lot here.
