06-26-2012 10:00 PM
org.activiti.engine.impl.juel.TreeBuilderException: Error parsing '${userService.findUsers("{"id":"12"}"': syntax error at position 27, encountered 'id', expected ')'
…
<startEvent id="startevent1" name="Start"></startEvent>
<userTask id="P1" name="P1" activiti:candidateUsers="${userService.findUsers("{"id":"12"}", var1)}"></userTask>
<endEvent id="endevent1" name="End"></endEvent>
…
06-27-2012 02:32 AM
In section 1.3, "Literals", the specification states that "Quotes only need to be escaped in a string value enclosed in the same type of quote". This suggests that, e.g., "You could escape a single quote in a double-quoted string, but it's not necessary". JUEL guesses that you can't and that the above should read as "Quotes can only be escaped in a string value enclosed in the same type of quote".
${userService.findUsers("{'id':'12'}")
or
${userService.findUsers('{"id":"12"}')
or even
${userService.findUsers("{\"id\":\"12\"}")
06-27-2012 04:56 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.