- launch(slcCommand, firstArg, executionName);
- return "COMMAND COMPLETED";
- }
-
- protected void launch(String slcCommand, String firstArg,
- String executionName) {
- lastLaunch = modulesManager.findRealizedFlow(firstArg, executionName);
- if (lastLaunch == null)
- throw new SlcException("Cannot find launch for " + firstArg + " "
- + executionName);
-
- // Execute
- if (SLC_WITH_REFRESH.equals(slcCommand))
- modulesManager.updateAndExecute(lastLaunch);
- else if (SLC_NO_REFRESH.equals(slcCommand))
- modulesManager.execute(lastLaunch);
- else
- throw new SlcException("Unrecognized SLC command " + slcCommand);
+ lastProcessUuid = agentCli
+ .process(args.toArray(new String[args.size()]));
+ return lastProcessUuid;