cancel
Showing results for 
Search instead for 
Did you mean: 

Timer and Task expiration

pganga
Champ in-the-making
Champ in-the-making
Hi Guys,
this is my problem. I need to dynamically set the due date in the task based on runtime configuration, I already did that from a Task listener without  a problem. The real issue is I need to expire the task based on the same due date (the one in the task) for What I saw and read in the docs Timer boundary event is statically defined (you can use variables but that needs to be present when the process start). Is there a way to dynamically expire the task based on the task due date?.

Thanks in advance.

BTW we use activiti 5.8
1 REPLY 1

pganga
Champ in-the-making
Champ in-the-making
here is some more info, this is my task definition:

<boundaryEvent id="boundarytimer1" name="" cancelActivity="true" attachedToRef="ManualReview">
      <timerEventDefinition>
        <timeDate>${expirationDate}</timeDate>
      </timerEventDefinition>
    </boundaryEvent>

If you see the expiration date variable, needs to be present when the execution is starting. what we need to is to use the due date of the task instead of the time date of the timer.