cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti 6.0 UI: Candidate cannot claim task?

gelito
Champ in-the-making
Champ in-the-making
It seems like candidates are not able to claim tasks in new UI. If task assignment configuration for task contains only candidate user id, such user won't see the Claim button, but will see the task on the list with indication in the Involved field that he/she is involved. Only process initiator will see the claim task button if he is currently active user and there is an option checked for task that Initiator can complete tasks. Is it just me who is having this problem? I have a script task in my process where depending on the value from the dropdown in start form I am setting candidate id variable value (added in human task configuration in candidate field).
5 REPLIES 5

gelito
Champ in-the-making
Champ in-the-making
It looks like the problem is with setting candidate value with variable which is generated by script. If I explicitly add candidates in BPMN 2.0 model such task appears in respective inboxes and users are able to claim, so it works as expected in such case. Could you please share how should I dynamically perform assignment based on script task outcome?

This is how my script looks like:
<javascript>
def language=execution.getVariable('language');
def translationcandidates ="";

if (language=="Hungarian")
{
translationcandidates="1000"
}

execution.setVariable('translationcandidates',translationcandidates);
</javascript>

And in human task I provide "${translationcandidates}" entry in the Fixed values/candidate users field.

How should I do it correctly to make it work?

vasile_dirla
Star Contributor
Star Contributor
please test if 'translationcandidates' variable is set corectly.
Just add a new task to display this variable value. (this will reduce a lot the area of investigation of the issue)

gelito
Champ in-the-making
Champ in-the-making
Yes, the variable is correctly set to value from script - group id. The identity link is built as well, I see group id value in respective row for ACT_RU_IDENTITYLINK table. User who belongs to this groups is also able to see this task in inbox when choosing a filter to display tasks assigned to this group. It's only Claim button that is not displaying in such case.

jbarrez
Star Contributor
Star Contributor
Claiming using a candidate group indeed seems to be broken. We'll fix it.

gelito
Champ in-the-making
Champ in-the-making
Thanks