AnsweredAssumed Answered

how can get 'execution' in activiti:candidateUsers expression

Question asked by accipiter on Nov 18, 2016
Latest reply on Nov 21, 2016 by accipiter
<userTask id="usertask1" name="usertask1" activiti:assignee="${countersignAssignee}"        activiti:candidateUsers="${activitiEmpService.listOrgEmp(activitiEmpService.getComCode(,'10')}"                </userTask>

in this case, i need to calculate the candidateUsers by company code(localComCode) stored in local variables in execution.
i have tried
and the result is it simply use the first variable named 'localComCode' and doesn't consider if it is the one in this execution.

so i tried another way
i m trying to get that local variable by myself, but i cant pass the 'execution' to my java class. the result is 'execution' is not defined.

could you tell me the way to solve the problem?