public void setValues(IOSpecification otherSpec) { dataInputs = new ArrayList<>(); if (otherSpec.getDataInputs() != null && !otherSpec.getDataInputs().isEmpty()) { for (DataSpec dataSpec : otherSpec.getDataInputs()) { dataInputs.add(dataSpec.clone()); } } dataOutputs = new ArrayList<>(); if (otherSpec.getDataOutputs() != null && !otherSpec.getDataOutputs().isEmpty()) { for (DataSpec dataSpec : otherSpec.getDataOutputs()) { dataOutputs.add(dataSpec.clone()); } } dataInputRefs = new ArrayList<>(otherSpec.getDataInputRefs()); dataOutputRefs = new ArrayList<>(otherSpec.getDataOutputRefs()); } }
public void setValues(IOSpecification otherSpec) { dataInputs = new ArrayList<>(); if (otherSpec.getDataInputs() != null && !otherSpec.getDataInputs().isEmpty()) { for (DataSpec dataSpec : otherSpec.getDataInputs()) { dataInputs.add(dataSpec.clone()); } } dataOutputs = new ArrayList<>(); if (otherSpec.getDataOutputs() != null && !otherSpec.getDataOutputs().isEmpty()) { for (DataSpec dataSpec : otherSpec.getDataOutputs()) { dataOutputs.add(dataSpec.clone()); } } dataInputRefs = new ArrayList<>(otherSpec.getDataInputRefs()); dataOutputRefs = new ArrayList<>(otherSpec.getDataOutputRefs()); } }
String dataInputRefs = xtr.getElementText(); if (StringUtils.isNotEmpty(dataInputRefs)) { ioSpecification.getDataInputRefs().add(dataInputRefs.trim());
if (ioSpecification.getDataInputRefs().size() > 0) { String firstDataInputName = ioSpecification.getDataInputRefs().get(0); ItemInstance inputItem = (ItemInstance) execution.getTransientVariable(firstDataInputName); message = new MessageInstance(operation.getInMessage(), inputItem);
protected IOSpecification createIOSpecification(BpmnParse bpmnParse, org.flowable.bpmn.model.IOSpecification specificationModel) { IOSpecification ioSpecification = new IOSpecification(); for (DataSpec dataInputElement : specificationModel.getDataInputs()) { ItemDefinition itemDefinition = bpmnParse.getItemDefinitions().get(dataInputElement.getItemSubjectRef()); Data dataInput = new Data(bpmnParse.getTargetNamespace() + ":" + dataInputElement.getId(), dataInputElement.getId(), itemDefinition); ioSpecification.addInput(dataInput); } for (DataSpec dataOutputElement : specificationModel.getDataOutputs()) { ItemDefinition itemDefinition = bpmnParse.getItemDefinitions().get(dataOutputElement.getItemSubjectRef()); Data dataOutput = new Data(bpmnParse.getTargetNamespace() + ":" + dataOutputElement.getId(), dataOutputElement.getId(), itemDefinition); ioSpecification.addOutput(dataOutput); } for (String dataInputRef : specificationModel.getDataInputRefs()) { DataRef dataRef = new DataRef(dataInputRef); ioSpecification.addInputRef(dataRef); } for (String dataOutputRef : specificationModel.getDataOutputRefs()) { DataRef dataRef = new DataRef(dataOutputRef); ioSpecification.addOutputRef(dataRef); } return ioSpecification; }