It is not possible to use function with more then 1 argument as custom assignment handler for candidateGroups

Description

I was able to reproduce this problem with unit-tests in activiti-spring - simple replace in CustomTaskAssignmentTest.testSetAssigneeThroughSpringService.bpmn20.xml line
activiti:assignee="${fakeLdapService.findManagerForEmployee(emp)}"
with line
activiti:candidateGroup="${fakeLdapService.findManagerForEmployee(execution, emp)}"
and you will get error like "no process definitions found in deployment" - process simple is not deployed.

Some notes what may help to fix it:

  • for activiti:assignee it works with any number of arguments

  • for activiti:candidateGroup it work if assignment handler method as 1 argument - it is not working in case it has 2 or more arguments

Environment

None

Assignee

Joram Barrez

Reporter

Alexey Kakunin

Labels

None

Fix versions

Affects versions

Priority

Major
Configure