See the linked eclipse bugzilla.
Fixed. See linked eclipse BZ.
Test concerning this issue:
Input Data collection for MultiInstanceSubProcess can be only variable from local process variables.
Verified on BPMN2 Modeler 18.104.22.168502121708.
Fix not included in jbds-8.0.2.GA_jbdsis-8.0.0.CR2.
Created attachment 1008991 [details]
process and screenshots
Please open the bpmn process from the attachment. I have successfully select process variable(VariableTwo) where is desired collection.
But if I want to specify iterator, I obtain error tagged with red (1) in problemsView.png. I can specify data type of iterator if I double-click to line, where is error (1) displayed. But there should be option to specify iterator data type in area tagged with red (2) in file properties.png.
Actually, the data type for the iterator should automatically be set to the same data type as the collection, no? In this case, the user should not have to change the data type of the iterator...unless it is possible that the engine does type conversion from collection items to iterator type. For example providing a collection of numbers formatted as Strings would allow an Integer iterator to be used, and the engine would convert the Strings in the collection to Integer on-the-fly. Is this possible?
I think, It is good idea to set Iterator data type to data type of collection. But can't declare collection variable like java.util.ArrayList<Integer>. What I can declare is java.util.ArrayList.
I don't know if engine can do type inferring during runtime.
The same for type conversion. I am not sure about it. I am not engine developer.
I think, Kris should know the answer.
Kris, do you know if MI iterators even need a data type in jBPM?
I've made some fixes to allow editing of MI iterators, this will be in builds 22.214.171.12450618* for Luna and Mars
Fix looks good on BPMN2 Modeler 126.96.36.199506182307.
BPMN2 Modeler - 188.8.131.52508191851