candidateGroup can't use expression with comma

Description

When I use expression in candidate group in user task:

<potentialOwner>
<resourceAssignmentExpression>
<formalExpression>group(${flexibee.queryForOne('clenstvi-pro-workflow', 'typDokl = 1')})</formalExpression>
</resourceAssignmentExpression>
</potentialOwner>

It fails on expression language parser:

Caused by: org.activiti.engine.impl.juel.TreeBuilderException: Error parsing '${flexibee.queryForOne("clenstvi-pro-workflow': lexical error at position 23, encountered unterminated string, expected "
at org.activiti.engine.impl.juel.Builder.build(Builder.java:97)
at org.activiti.engine.impl.juel.TreeStore.get(TreeStore.java:61)
at org.activiti.engine.impl.juel.TreeValueExpression.<init>(TreeValueExpression.java:62)
at org.activiti.engine.impl.juel.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:428)
at org.activiti.engine.impl.juel.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:73)
at org.activiti.engine.impl.el.ExpressionManager.createExpression(ExpressionManager.java:73)

Problem is that it splits candidate groups with comma and then it parses it. So in this case there are two candidateGroups:

group(${flexibee.queryForOne('clenstvi-pro-workflow'
'typDokl = 1')})

It should respect expression language while splitting groups.

Environment

None

Assignee

Tijs Rademakers

Reporter

Petr Ferschmann

Labels

None

Components

Fix versions

Affects versions

Priority

Critical
Configure