AnsweredAssumed Answered

Call Activity - PropertyNotFoundException

Question asked by diogosaad on Oct 11, 2011
Latest reply on Oct 16, 2011 by diogosaad
Hello Folks,

I'm getting the following exception while trying to execute a process with a "Call Activity":
org.activiti.engine.ActivitiException: Unknown property used in expression
   at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:55)
   at org.activiti.engine.impl.el.UelExpressionCondition.evaluate(UelExpressionCondition.java:37)
   at org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior.leave(ExclusiveGatewayActivityBehavior.java:63)
   …
Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'sector'
   at org.activiti.engine.impl.juel.AstIdentifier.eval(AstIdentifier.java:83)
   at org.activiti.engine.impl.juel.AstBinary$SimpleOperator.eval(AstBinary.java:27)
   at org.activiti.engine.impl.juel.AstBinary.eval(AstBinary.java:106)
   at org.activiti.engine.impl.juel.AstEval.eval(AstEval.java:50)
   at org.activiti.engine.impl.juel.AstNode.getValue(AstNode.java:26)
   at org.activiti.engine.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:114)
   at org.activiti.engine.impl.delegate.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:33)
   at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37)
   at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25)
   at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:50)
I do have a "Parent" process which has a Call to a "Child" process and the "sector" variable is passed as a parameter to the child process.


<bpmn2:CallActivity id="any" name="" incoming="flow15" outgoing="flow14" calledElement="ChildProcess">
    <inParameters source="sectorInParent" target="sector"/>
    <outParameters source="result" target="resultFromChildProcess"/>
  </bpmn2:CallActivity>

How can I declare process variables ?

PS: In jbpm I just click on the process canvas and the eclipse properties view shows me "variables" property.
Is there something analogous in Activiti ?

Outcomes