|
@@ -62,7 +62,7 @@ public class ProcessTaskServiceImpl implements IProcessTaskService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public boolean viewed(FlowCreator flowCreator, Long taskId) {
|
|
|
+ public boolean viewed(Long taskId, FlowCreator flowCreator) {
|
|
|
return flowLongEngine.taskService().viewTask(taskId, FlwTaskActor.ofFlowCreator(flowCreator));
|
|
|
}
|
|
|
|
|
@@ -79,6 +79,35 @@ public class ProcessTaskServiceImpl implements IProcessTaskService {
|
|
|
return dto;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public boolean transfer(Long taskId, FlwTaskActor taskActor, FlwTaskActor assigneeTaskActor) {
|
|
|
+ TaskService taskService = flowLongEngine.taskService();
|
|
|
+ return taskService.transferTask(taskId, taskActor, assigneeTaskActor);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean delegate(Long taskId, FlwTaskActor taskActor, FlwTaskActor assigneeTaskActor) {
|
|
|
+ TaskService taskService = flowLongEngine.taskService();
|
|
|
+ return taskService.delegateTask(taskId, taskActor, assigneeTaskActor);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean reclaim(Long taskId, FlowCreator flowCreator) {
|
|
|
+ TaskService taskService = flowLongEngine.taskService();
|
|
|
+ return taskService.reclaimTask(taskId, flowCreator).isPresent();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean resume(Long taskId, FlowCreator flowCreator) {
|
|
|
+ TaskService taskService = flowLongEngine.taskService();
|
|
|
+ return null != taskService.resume(taskId, FlwTaskActor.ofFlowCreator(flowCreator));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean executeJump(Long taskId, String nodeName, FlowCreator flowCreator) {
|
|
|
+ return flowLongEngine.executeJumpTask(taskId, nodeName, flowCreator);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public boolean execute(FlowCreator flowCreator, ExecuteTaskDTO dto) {
|
|
|
return flowLongEngine.executeTask(dto.getTaskId(), flowCreator, dto.getArgs());
|