Search in sources :

Example 1 with AddLogicalFlowCommand

use of com.khartec.waltz.model.logical_flow.AddLogicalFlowCommand in project waltz by khartec.

the class LogicalFlowEndpoint method addFlowRoute.

private LogicalFlow addFlowRoute(Request request, Response response) throws IOException {
    ensureUserHasEditRights(request);
    String username = getUsername(request);
    AddLogicalFlowCommand addCmd = readBody(request, AddLogicalFlowCommand.class);
    LOG.info("User: {}, adding new logical flow: {}", username, addCmd);
    LogicalFlow savedFlow = logicalFlowService.addFlow(addCmd, username);
    return savedFlow;
}
Also used : LogicalFlow(com.khartec.waltz.model.logical_flow.LogicalFlow) AddLogicalFlowCommand(com.khartec.waltz.model.logical_flow.AddLogicalFlowCommand)

Aggregations

AddLogicalFlowCommand (com.khartec.waltz.model.logical_flow.AddLogicalFlowCommand)1 LogicalFlow (com.khartec.waltz.model.logical_flow.LogicalFlow)1