@RequestMapping(value="supervisor/service/") public interface SupervisorService extends Checkpoint
DISCARD| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
cancelInstance(long instanceId,
Long wnstanceId,
Operations ops) |
boolean |
checkpoint(long taskId,
String executeSnapshot)
Save the task execution snapshot
|
SchedTask |
getTask(long taskId) |
List<WorkflowPredecessorNode> |
getWorkflowPredecessorNodes(long wnstanceId,
long instanceId)
Gets workflow predecessor nodes
|
boolean |
pauseInstance(long instanceId,
Long wnstanceId) |
boolean |
startTask(StartTaskParam param) |
boolean |
terminateTask(TerminateTaskParam param) |
void |
updateTaskWorker(List<TaskWorkerParam> params) |
@PostMapping(value="task/start") boolean startTask(StartTaskParam param) throws Exception
Exception@PostMapping(value="task/worker/update") void updateTaskWorker(List<TaskWorkerParam> params) throws Exception
Exception@GetMapping(value="workflow/predecessor/nodes/get") List<WorkflowPredecessorNode> getWorkflowPredecessorNodes(long wnstanceId, long instanceId) throws Exception
wnstanceId - the workflow lead instance idinstanceId - the current node instance idException - if occur error@PostMapping(value="task/terminate") boolean terminateTask(TerminateTaskParam param) throws Exception
Exception@PostMapping(value="instance/pause")
boolean pauseInstance(long instanceId,
Long wnstanceId)
throws Exception
Exception@PostMapping(value="instance/cancel")
boolean cancelInstance(long instanceId,
Long wnstanceId,
Operations ops)
throws Exception
Exception@PostMapping(value="task/checkpoint")
boolean checkpoint(long taskId,
String executeSnapshot)
throws Exception
Checkpointcheckpoint 在接口中 CheckpointtaskId - the task idexecuteSnapshot - the execution snapshot datatrue if saved successfullyException - if saved occur exceptionCopyright © 2023. All rights reserved.