use of org.eclipse.bpmn2.MultiInstanceLoopCharacteristics in project kie-wb-common by kiegroup.
the class MultipleInstanceActivityPropertyReader method getDataOutputIdForDataOutputVariable.
protected String getDataOutputIdForDataOutputVariable() {
String dataOutputVariableId = null;
DataOutput variableDataOutput = getMultiInstanceLoopCharacteristics().map(MultiInstanceLoopCharacteristics::getOutputDataItem).orElse(null);
if (variableDataOutput != null) {
String itemSubjectRef = getItemSubjectRef(variableDataOutput);
String variableId = ItemNameReader.from(variableDataOutput).getName();
dataOutputVariableId = super.getDataOutputs().stream().filter(output -> Objects.equals(variableId, output.getName())).filter(output -> hasItemSubjectRef(output, itemSubjectRef)).map(BaseElement::getId).findFirst().orElse(null);
}
return dataOutputVariableId;
}
Aggregations