cancel
Showing results for 
Search instead for 
Did you mean: 

Timers ignore timeDate attribute

kutezh
Champ in-the-making
Champ in-the-making
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]
4 REPLIES 4

kutezh
Champ in-the-making
Champ in-the-making
I run activiti 6.0 Beta2.
Any help will be appreciated! Thank you.

jbarrez
Star Contributor
Star Contributor
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.

kutezh
Champ in-the-making
Champ in-the-making
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?

jbarrez
Star Contributor
Star Contributor
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.