AnsweredAssumed Answered

Splitting a workflowpackage into several subprocesses

Question asked by marcus.svensson on Mar 12, 2014
Hi

I'm working on a process in Activiti which will have a number of documents attached to it in its bpm_package.

What I want to achieve is to launch a subprocess for each of these files in the bpm package. I cannot find this documented anywhere so I'd like some help if anyone has done this before.

My code which was supposed to launch a sub process is as follows, but it just gives the error: 16:06:23,061 DEBUG [org.alfresco.repo.jscript.ScriptLogger] org.activiti.engine.ActivitiIllegalArgumentException: Variable bpm_package' is not a Collection


<callActivity id="ReviewSubprocess" name="Review" calledElement="DocumentReview">
      <extensionElements>
        <activiti:in source="initiator" target="initiator"></activiti:in>
        <activiti:in source="aBpmPackage" target="bpm_package"></activiti:in>
      </extensionElements>
      <multiInstanceLoopCharacteristics isSequential="false" activiti:collection="bpm_package" activiti:elementVariable="aBpmPackage"></multiInstanceLoopCharacteristics>
</callActivity>



Any help on this would be appreciated!

Marcus

Outcomes