private OutputSet getOutputSet(InputOutputSpecification ioSpecification) { List<OutputSet> outputSets = ioSpecification.getOutputSets(); OutputSet outputSet; if (outputSets.isEmpty()) { outputSet = bpmn2.createOutputSet(); outputSets.add(outputSet); } else { outputSet = outputSets.get(0); } return outputSet; } }
private String marshallDataOutputSet(Activity activity, Map<String, Object> properties, List<String> disallowedNames) { if (activity.getIoSpecification() != null) { List<OutputSet> outputSetList = activity.getIoSpecification().getOutputSets(); StringBuilder dataOutBuffer = new StringBuilder(); for (OutputSet outset : outputSetList) { List<DataOutput> dataOutputList = outset.getDataOutputRefs(); marshallItemAwareElements(activity, dataOutputList, dataOutBuffer, disallowedNames); } if (dataOutBuffer.length() > 0) { dataOutBuffer.setLength(dataOutBuffer.length() - 1); } String dataoutputset = dataOutBuffer.toString(); properties.put(DATAOUTPUTSET, dataoutputset); return dataoutputset; } else { return null; } }
public MultipleInstanceSubProcessPropertyWriter(SubProcess process, VariableScope variableScope) { super(process, variableScope); this.miloop = bpmn2.createMultiInstanceLoopCharacteristics(); process.setLoopCharacteristics(miloop); this.ioSpec = bpmn2.createInputOutputSpecification(); this.inputSet = bpmn2.createInputSet(); this.ioSpec.getInputSets().add(inputSet); this.outputSet = bpmn2.createOutputSet(); this.ioSpec.getOutputSets().add(outputSet); process.setIoSpecification(ioSpec); }
ios.getInputSets().add(inset); if (ios.getOutputSets() == null) { if (ios.getOutputSets() == null || ios.getOutputSets().size() < 1) { OutputSet outset = Bpmn2Factory.eINSTANCE.createOutputSet(); ios.getOutputSets().add(outset);
activity.getIoSpecification().getOutputSets().add(outset); } else { if (activity.getIoSpecification() != null) { activity.getIoSpecification().getOutputSets().add(Bpmn2Factory.eINSTANCE.createOutputSet());
if (outputCollectionStr != null && !outputCollectionStr.isEmpty()) { OutputSet outset = sp.getIoSpecification().getOutputSets().get(0); DataOutput multiOutput = Bpmn2Factory.eINSTANCE.createDataOutput(); multiOutput.setId(sp.getId() + "_" + "output");
miCollectionOutputDI.setItemSubjectRef(miCollectionOutputDIItemDefinition); task.getIoSpecification().getDataOutputs().add(miCollectionOutputDI); if (task.getIoSpecification().getOutputSets() == null || task.getIoSpecification().getOutputSets().size() < 1) { OutputSet outset = Bpmn2Factory.eINSTANCE.createOutputSet(); task.getIoSpecification().getOutputSets().add(outset); task.getIoSpecification().getOutputSets().get(0).getDataOutputRefs().add(miCollectionOutputDI); loopCharacteristics.setLoopDataOutputRef(miCollectionOutputDI); DataOutputAssociation miCollectionInputDataOutputAssociation = Bpmn2Factory.eINSTANCE.createDataOutputAssociation();
InputOutputSpecification iospec = Bpmn2Factory.eINSTANCE.createInputOutputSpecification(); OutputSet outSet = Bpmn2Factory.eINSTANCE.createOutputSet(); iospec.getOutputSets().add(outSet); task.setIoSpecification(iospec);
if (task.getIoSpecification().getOutputSets() == null || task.getIoSpecification().getOutputSets().size() < 1) { OutputSet outSet = Bpmn2Factory.eINSTANCE.createOutputSet(); task.getIoSpecification().getOutputSets().add(outSet); OutputSet outSet = task.getIoSpecification().getOutputSets().get(0); for (DataOutput dataOut : outSet.getDataOutputRefs()) { if (dataOut.getId().equals(task.getId() + "_" + da.getId() + "OutputX")) { d.setName(da.getId() + "OutputX"); task.getIoSpecification().getDataOutputs().add(d); task.getIoSpecification().getOutputSets().get(0).getDataOutputRefs().add(d); DataOutputAssociation doa = Bpmn2Factory.eINSTANCE.createDataOutputAssociation(); doa.getSourceRef().add(d); if (sourceElement.getIoSpecification().getOutputSets() == null || sourceElement.getIoSpecification().getOutputSets().size() < 1) { OutputSet outSet = Bpmn2Factory.eINSTANCE.createOutputSet(); sourceElement.getIoSpecification().getOutputSets().add(outSet); OutputSet outSet = sourceElement.getIoSpecification().getOutputSets().get(0); for (DataOutput dataOut : outSet.getDataOutputRefs()) { if (dataOut.getId().equals(sourceElement.getId() + "_" + da.getId() + "OutputX")) { d.setName(da.getId() + "OutputX"); sourceElement.getIoSpecification().getDataOutputs().add(d); sourceElement.getIoSpecification().getOutputSets().get(0).getDataOutputRefs().add(d); DataOutputAssociation doa = Bpmn2Factory.eINSTANCE.createDataOutputAssociation(); doa.getSourceRef().add(d);