cancel
Showing results for 
Search instead for 
Did you mean: 

Once task is completed at first level it is moving to next level, but not getting assigned.

shivnarayanvarm
Champ in-the-making
Champ in-the-making
Dear Developers,

I use below semantics i.e activiti:candidateUsers which calls java method to get potential list of assignees

activiti:candidateUsers="${findUserService.findUsersByTaskLevel(execution,'reviewInvoice')}".

My workflow is as follows:

reviewInvoice –> verifyInvoice –> ApproveInvoice

Step 1:

New row is added to our DB which initiate a workflow using spring intergation and a  new task workflow is created in activiti engine.

Task is assigned to poetntial users for task level "reviewInvoice"

Lets say findUserService.findUsersByTaskLevel(execution,'reviewInvoice') returns 3 users

1. Tim
2. Zen
3. Shiv

Now when I login with user shiv, I can see task assigned to his "Shiv"'s name.

Step 2.

User Shiv completes the task using below method
taskService.complete(taskId);

Now I expect task to move to next level. and it is working.
After task completion , I have queried ACT_RU_EXECUTION table and its ACT_ID_ column shows next task level name for task. Not sure if this is correct way to verify,

Now next level is verifyInvoice.
Here I use same technique of assigning user using activiti:candidateUsers="${findUserService.findUsersByTaskLevel(execution,'verifyInvoice')}".

lets say poential users for verifyInvoice returns 3 users

1. ted
2. Zim
3. Yen

Now when ted logins he should see this task as pending task item for him. but thats not happening.

So after task is completed at first level it is moving to next level, but not getting assigned.

Please help. Any inputs are most welcome.

4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

It should work. Could you create jUnit test for the issue please?
could you check your ACT_RU_IDENTITYLINK table? (Is there any record about task candidates?)

Regards
Martin

Hi Martin, Thanks for reply. Yes this table "ACT_RU_IDENTITYLINK" is empty. How can we populate this.

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Shivnarayan,

I think the best way how to reproduce -> solve the issue is to create jUnit test (I can have a look on it)). In other case you have to find out why ACT_RU_IDENTITYLINK is empty.

Regards
Martin

Hi Martin, This issue got fixed. I just re-created same diagram (without any changes) and it worked. ACT_RU_IDENTITYLINK  table is now getting populated.. thanks for your help.