Map<String, String> dataObjectIds = DataObjectIdService.getDataObjectIds(flowNodeJaxb);
// only create a DataObjectService with a data object service provider if there is at least on object id
if (dataObjectIds.size() > 0) {
LOG.debug("Node factory appending data object service provider");
return new DataObjectService(dataObjectIds.get(DataObjectIdService.DATAINPUTOBJECTID), dataObjectIds.get(DataObjectIdService.DATAOUTPUTOBJECTID));
}
// otherwise provide a dummy DataObjectService
else {
return new DataObjectService(new NoDataObjectSP());
}
}