AnsweredAssumed Answered

How can a multi-instance task read the inputDataItem?

Question asked by wolpert on Sep 30, 2011
Latest reply on Sep 30, 2011 by wolpert
I have the following xml fragment in my business process…

    <callActivity id="digitizeVideo" name="DigitizeVideo" calledElement="SourceVideo">
      <multiInstanceLoopCharacteristics isSequential="false">
        <loopDataInputRef>assetsToDigitize</loopDataInputRef>
        <inputDataItem name="assetId"></inputDataItem>
      </multiInstanceLoopCharacteristics>
    </callActivity>

When the call activity is executed, I get a bunch of new processes running. The first task is being worked on needs the assetId in this case. How is it set? Specifically, I see the initial process instance which has the assetsToDigitize variable set, which has executions. One of those executions have the assetId set. It also has 5 subProcessInstances which do not have the variable set, and the task does not have the variable set. As far as I can tell, given a taskId, I can't 'find' the assetId its supposed to work on.

So, my question is; what is the proper way to find the variable set via the multiInstanceLoopCharacteristics behavior when I only have the taskId available to me?

Outcomes