workingMemory.setGlobal("myList", myList);
List<String> collection = new ArrayList<String>();
Map<String, Object> params = new HashMap<String, Object>();
params.put("collection", collection);
ProcessInstance processInstance = ( ProcessInstance )
workingMemory.startProcess("org.drools.ForEach", params);
assertEquals(ProcessInstance.STATE_COMPLETED, processInstance.getState());
}
public void testForEachNullList() {
PackageBuilder builder = new PackageBuilder();