if (contents.getInputPorts() != null) { components.addAll(contents.getInputPorts());
.map(conn -> conn.getId()) .forEach(id -> identifiers.add(id)); snippet.getInputPorts().stream() .map(port -> port.getId()) .forEach(id -> identifiers.add(id));
public void validate(final ProcessGroup group) { // validate the names of Input Ports for (final PortDTO port : dto.getInputPorts()) { if (group.getInputPortByName(port.getName()) != null) { throw new IllegalStateException("One or more of the proposed Port names is not available in the process group"); } } // validate the names of Output Ports for (final PortDTO port : dto.getOutputPorts()) { if (group.getOutputPortByName(port.getName()) != null) { throw new IllegalStateException("One or more of the proposed Port names is not available in the process group"); } } verifyComponentTypesInSnippet(); SnippetUtils.verifyNoVersionControlConflicts(dto, group); }
if (snippetContents.getInputPorts() != null) { for (final PortDTO portDTO : snippetContents.getInputPorts()) { String portName = portDTO.getName(); while (existingPortNames.contains(portName)) {
for (final PortDTO port : original.getInputPorts()) { inputPorts.add(copy(port)); groups.addAll(copy(original.getProcessGroups())); if (original.getInputPorts() != null) { inputPorts.addAll(copy(original.getInputPorts()));
if (flow.getInputPorts() != null) { for (final PortDTO portDTO : flow.getInputPorts()) { final Port port = inputPortDAO.getPort(portDTO.getId()); final Collection<ValidationResult> validationErrors = port.getValidationErrors();
dto.getInputPorts().add(createPortDto(inputPort));
if (originalSnippet.getInputPorts() != null) { for (final PortDTO port : originalSnippet.getInputPorts()) { copySnippet.getInputPorts().add(copy(port));
fsDTO.funnels = this.orderedById(fsDTO.getFunnels()); this.removeInstanceIdentifierIfNecessary(fsDTO.getInputPorts()); fsDTO.inputPorts = this.orderedById(fsDTO.getInputPorts());
for (final PortDTO snippetInputPort : snippet.getInputPorts()) { final Port inputPort = group.getInputPort(snippetInputPort.getId());
rollbackClonedPolicy(ResourceFactory.getComponentResource(ResourceType.Funnel, funnelDTO.getId(), funnelDTO.getId())); }); snippet.getInputPorts().forEach(inputPortDTO -> { rollbackClonedPolicy(ResourceFactory.getComponentResource(ResourceType.InputPort, inputPortDTO.getId(), inputPortDTO.getName())); });
for (final PortDTO inputPort : snippet.getInputPorts()) { actions.add(generateAuditRecord(inputPort.getId(), inputPort.getName(), Component.InputPort, Operation.Add, timestamp));
if (snippetContents.getInputPorts() != null) { for (final PortDTO portDTO : snippetContents.getInputPorts()) { final PortDTO cp = dtoFactory.copy(portDTO); cp.setId(generateId(portDTO.getId(), idGenerationSeed, isCopy));
for (final PortDTO portDTO : dto.getInputPorts()) { final Port inputPort; if (group.isRootGroup()) { childTemplateDTO.setInputPorts(contents.getInputPorts()); childTemplateDTO.setLabels(contents.getLabels()); childTemplateDTO.setOutputPorts(contents.getOutputPorts());
.collect(Collectors.toList())); map.put(INPUT_PORTS_KEY, nullToEmpty(snippet.getInputPorts()).stream() .map(inputPortSchemaFunction) .sorted(Comparator.comparing(PortSchema::getName))
.collect(Collectors.toList())); map.put(INPUT_PORTS_KEY, nullToEmpty(snippet.getInputPorts()).stream() .map(inputPortSchemaFunction) .sorted(Comparator.comparing(PortSchema::getName))