X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.server%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fweb%2Fmvc%2Fcontrollers%2FProcessController.java;h=49bc069ff35b6125bcdfc53d6d579b04ed7ab62e;hb=2dda9f688e270c92b79129689916f891cb6490d5;hp=b698f2ffb6174674d04920ef361d3b01c06264a6;hpb=b811ec0603b1e596f26eee8a5378c6294cba495d;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/mvc/controllers/ProcessController.java b/runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/mvc/controllers/ProcessController.java index b698f2ffb..49bc069ff 100644 --- a/runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/mvc/controllers/ProcessController.java +++ b/runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/web/mvc/controllers/ProcessController.java @@ -157,6 +157,22 @@ public class ProcessController { return ExecutionAnswer.ok("Execution completed properly"); } + @RequestMapping("/tailSlcExecutionStepsCount.service") + protected ObjectList tailSlcExecutionSteps(@RequestParam String uuid, + @RequestParam Integer stepCount) { + List list = slcExecutionDao + .tailSteps(uuid, stepCount); + return new ObjectList(list); + } + + @RequestMapping("/tailSlcExecutionStepsOffset.service") + protected ObjectList tailSlcExecutionSteps(@RequestParam String uuid, + @RequestParam String stepOffsetUuid) { + List list = slcExecutionDao.tailSteps(uuid, + stepOffsetUuid); + return new ObjectList(list); + } + private void initializeSEM() { slcExecutionManager = new SlcExecutionManager(unmarshaller, marshaller, attachmentsStorage);