@Override public AssignmentsInfo getAssignmentsInfo() { return AssignmentsInfos.of( throwEvent.getDataInputs(), throwEvent.getDataInputAssociation(), Collections.emptyList(), Collections.emptyList(), false); }
@Override public void setAssignmentsInfo(AssignmentsInfo info) { ParsedAssignmentsInfo assignmentsInfo = ParsedAssignmentsInfo.of(info); List<InitializedInputVariable> inputs = assignmentsInfo.createInitializedInputVariables(getId(), variableScope); if (inputs.isEmpty()) { return; } if (inputs.size() > 1) { throw new IllegalArgumentException("Input Associations should be at most 1 in Throw Events"); } InitializedInputVariable input = inputs.get(0); if (isReservedIdentifier(input.getIdentifier())) { return; } DataInput dataInput = input.getDataInput(); throwEvent.getDataInputs().add(dataInput); getInputSet().getDataInputRefs().add(dataInput); this.addItemDefinition(input.getItemDefinition()); DataInputAssociation dataInputAssociation = input.getDataInputAssociation(); if (dataInputAssociation != null) { throwEvent.getDataInputAssociation().add(dataInputAssociation); } }
nextInput.getAnyAttribute().add(extensionEntry); event.getDataInputs().add(nextInput); inset.getDataInputRefs().add(nextInput);
List<DataInput> dataInputs = te.getDataInputs(); for (DataInput din : dataInputs) { if (din.getId().equals(te.getId() + "_" + da.getId() + "InputX")) { datain.setId(te.getId() + "_" + da.getId() + "InputX"); datain.setName(da.getId() + "InputX"); te.getDataInputs().add(datain); if (te.getInputSet() == null) { InputSet inset = Bpmn2Factory.eINSTANCE.createInputSet();