AnsweredAssumed Answered

Multi Instance :

Question asked by arihant.banthia on Apr 6, 2015
Hi,

I am new to Activiti and while trying to use multi-instance for a sub process but it gives the following error when I try to complete the sub process:

Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'assignee'
   at org.activiti.engine.impl.juel.AstIdentifier.setValue(AstIdentifier.java:97)
   at org.activiti.engine.impl.juel.AstEval.setValue(AstEval.java:86)
   at org.activiti.engine.impl.juel.TreeValueExpression.setValue(TreeValueExpression.java:138)
   at org.activiti.engine.impl.delegate.ExpressionSetInvocation.invoke(ExpressionSetInvocation.java:37)
   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.setValue(JuelExpression.java:67)
   … 62 more

"assignee" is an element variable for the multi-inastance collection. When I start the process with two values in the collection it starts the required sub process and shows the correct values as well but when I try to complete the task it throws above error.

<definitions … >
  <process id="parallel_subpro" name="Parallel Sub Procesess" isExecutable="true">
    <startEvent id="startevent1" name="Start"></startEvent>
    <subProcess id="subprocess1" name="Sub Process">
      <multiInstanceLoopCharacteristics isSequential="false" activiti:collection="Roles" activiti:elementVariable="assignee"></multiInstanceLoopCharacteristics>
      <userTask id="usertask1" name="User Task" activiti:assignee="kermit">
        <extensionElements>
          <activiti:formProperty id="assignee2" name="Assignee" expression="${assignee}"></activiti:formProperty>
        </extensionElements>
      </userTask>
      <startEvent id="startevent2" name="Start"></startEvent>
      <sequenceFlow id="flow2" sourceRef="startevent2" targetRef="usertask1"></sequenceFlow>
      <userTask id="usertask2" name="User Task" activiti:assignee="kermit"></userTask>
      <sequenceFlow id="flow3" sourceRef="usertask1" targetRef="usertask2"></sequenceFlow>
      <endEvent id="endevent1" name="End"></endEvent>
      <sequenceFlow id="flow4" sourceRef="usertask2" targetRef="endevent1"></sequenceFlow>
    </subProcess>
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="subprocess1"></sequenceFlow>
    <endEvent id="endevent2" name="End"></endEvent>
    <sequenceFlow id="flow5" sourceRef="subprocess1" targetRef="endevent2"></sequenceFlow>
  </process>
</definitions>


Can any one tell me what am I dong wrong? Thanks…

Outcomes