@RequestMapping( value = "/{topologyId}/workflows/{workflowName}/steps/{stepId}/connectFrom", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) public RestResponse<Workflow> connectStepFrom( @PathVariable String topologyId, @PathVariable String workflowName, @PathVariable String stepId, @RequestBody String[] stepNames) { Topology topology = topologyServiceCore.getMandatoryTopology(topologyId); topologyService.checkEditionAuthorizations(topology); topologyService.throwsErrorIfReleased(topology); Workflow wf = workflowBuilderService.connectStepFrom(topology, workflowName, stepId, stepNames); alienDAO.save(topology); return RestResponseBuilder.<Workflow>builder().data(wf).build(); }