3 Replies Latest reply on Nov 11, 2011 4:10 AM by Gary tse

    MultiInstance with output

    Gary tse Newbie

      Hi all,

       

      I've a problem collecting outputs from a multi-instance node.

       

      For testing purpose I've set up a case that looks like this :

       

      multiinstance.JPG

       

      I have a List<String> listOfItems that are run in multiple instances in the big square.  Each instance modify the string.  After that, the outputs are to be gathered and displayed.

       

      When I look at the OMG BPMN spec V2.0, in page 192, "Table 10.29 - MultiInstanceLoopCharacteristics attributes and model associations", there is "loopDataOutputRef" and "outputDataItem" that is suppose to do exactly what I need.  Is this something supported in JBPM engine?  I know that the designer may not work so I've been modifying the XML directly.   That did not seem to work.

       

      Here is the bpmn file and my junit test case :

       

       

       

      Here is the result from running that :

       

      start item:item1

      update item to:item1 changed

      Could not find variable itemOut

      Using process-level scope

       

      start item:item2

      update item to:item2 changed

      Could not find variable itemOut

      Using process-level scope

       

      start item:item3

      update item to:item3 changed

      Could not find variable itemOut

      Using process-level scope

       

      list is now[item1, item2, item3]

      listOut is now null