AnsweredAssumed Answered

'multi-instance' does not work

Question asked by othmann on Apr 4, 2011
Latest reply on Apr 22, 2011 by jbarrez

  I'm trying to have a mail task repeated several times, in order to send many mails in a loop.

  Here is the BPMN task description :

    <serviceTask id="mailtask1" name="Mail" activiti:type="mail">
        <activiti:field name="to" expression="${invites[loopCounter]}"></activiti:field>
        <activiti:field name="from" expression="xxxxxxxxxxxxxxx"></activiti:field>
        <activiti:field name="subject" expression="XXXXXXXXXXXXXXXX"></activiti:field>
        <activiti:field name="html">
      <multiInstanceLoopCharacteristics isSequential="false">

  In this case, the "loopCounter" variable seems not to be known :

Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'loopCounter'

  I've tried the "collection" and "elementVariable" way of doing (which is in fact what I really need), but the variable I chose as "elementVariable" is not known either as a local variable in the process.

   Any help about this would be really appreciated.


  PS : It is also very annoying that the Eclipse Designer removes the "multiInstanceLoopCharacteristics" node when we update the process diagram visually. This, however, seems normal.