cancel
Showing results for 
Search instead for 
Did you mean: 

Assignee not nulled when boundary timer event called

thysmichels
Champ in-the-making
Champ in-the-making
I have a process with a boundary timer event. When the timer is called it goes to the start of the process. My timer event works and gets trigger. The human task the timer event is on has a assignee (john) set.

I expect that when the timer event get's called and Cancel activity = true the task moves to the beginning of the flow and assignee is set to null. What is happening is the task is moved to the beginning of the flow but the assignee stays (john) as previously set.

How would l be able to null the assignee?
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
> What is happening is the task is moved to the beginning of the flow

I don't follow what you mean by this? If a task is cancelled, it is removed.

How do you do the assignment? Through a variable?

A process would help here to understand.

thysmichels
Champ in-the-making
Champ in-the-making
Sorry for the confusion. Here is a detailed description:
I have a human task with assignee="John" with a timer boundary event time duration PT20S which has Cancel Activity=true;. If duration expires move to the start of the process.

After 20 sec the task moves to the start but the assignee is still assigned to "John"? Should assignee=null?

Assignment is not done through variables but Activiti assignee field.

Hope that makes sense.

frederikherema1
Star Contributor
Star Contributor
I presume your start-event fill flow into the same user-task again? When the boundary-event is fired, the user task is deleted from the database. In case the process arrives at the same user task again, it will create a NEW Task entity, with all fields initialised based on what is defined in the bpmn20.xml. So it applies the activiti:assignee to the new task-instance.

If you want to have the task assigned to someone else, I suggest using an expression that uses a variables, which is different AFTER the boundary-event fired as opposed to the default (normal starting of a process), eg:


activiti:assignee="${isTimerFired ? 'John' : null}"