<userTask id="usertask1" name="usertask1" activiti:assignee="${countersignAssignee}" activiti:candidateUsers="${activitiEmpService.listOrgEmp(activitiEmpService.getComCode(execution.id),'10')}" </userTask>
in this case, i need to calculate the candidateUsers by company code(localComCode) stored in local variables in execution.
i have tried
activiti:candidateUsers="${activitiEmpService.listOrgEmp(localComCode,'10')}"
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
activiti:candidateUsers="${activitiEmpService.listOrgEmp(activitiEmpService.getComCode(execution.id),'10')}"
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?