cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure the timerEventDefinition for 1 single day ?

vincent_roye
Champ in-the-making
Champ in-the-making
Hi,

I have this boundary event in my workflow

        <boundaryEvent id="reviewTimer" name="Review Nag Timer" cancelActivity="false" attachedToRef="reviewTask">
         <timerEventDefinition>
           …..
         </timerEventDefinition>
   </boundaryEvent>


And I would like to trigger it only 1 specific day which is "bpm_workflowDueDate - 3 days". How can I fill my timerEventDefinition ?

Thank you very much for your help,

Best Regards,

Vincent
3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator
Hello,

based on <a href="http://www.activiti.org/userguide/#timerEventDefinitions">the Activiti user guide</a> you could use P3D to tell the timer to fire 3 days after being created / registered.

Regards
Axel

vincent_roye
Champ in-the-making
Champ in-the-making
Hi Axel,

I would need to set the timer 3 days before the due date. Do you know how I could do that ?

Thank you very much for your answers.

Vincent

afaust
Legendary Innovator
Legendary Innovator
Hello Vincent,

I have not tried it but I believe you can use expression language instead of absolute values to define the time. So basically you could write an <a href="http://www.activiti.org/userguide/#apiExpressions">expression</a> that calculates the date (directly or by calling a Java delegate).

Regards
Axel