Exception for Expressions with 2 params in BusinessRule ruleVariablesInput

Description

Creating a BusinessRuleTask with an expression like ${myService.doServiceCallTwoParams("param1", "param2")}, an exception is thrown when deploying the process:

org.activiti.engine.impl.juel.TreeBuilderException: Error parsing '${myService.doServiceCallTwoParams("param1"': syntax error at position 43, encountered 'null', expected ')'
at org.activiti.engine.impl.juel.Builder.build(Builder.java:99)
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:65)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseBusinessRuleTask(BpmnParse.java:1613)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseActivity(BpmnParse.java:1065)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseActivities(BpmnParse.java:1048)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseScope(BpmnParse.java:672)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseProcess(BpmnParse.java:602)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseProcessDefinitions(BpmnParse.java:542)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseRootElement(BpmnParse.java:256)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:228)
at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:90)
at org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:38)
at org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:42)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:59)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:31)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:54)
at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:106)
at org.activiti.engine.impl.test.TestHelper.annotationDeploymentSetUp(TestHelper.java:98)
at org.activiti.engine.test.ActivitiRule.starting(ActivitiRule.java:100)
at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:51)

I attached a test project showing that it works with one parameter, but not with two parameter.

Looks like the same error as in http://jira.codehaus.org/browse/ACT-428

Environment

None

Assignee

Tijs Rademakers

Reporter

Tobias Hilka

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure