Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.inlong.manager.workflow.core.ProcessorExecutor;
import org.apache.inlong.manager.workflow.core.TaskService;
import org.apache.inlong.manager.workflow.core.WorkflowContextBuilder;
import org.apache.inlong.manager.workflow.definition.ServiceTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

Expand Down Expand Up @@ -67,6 +68,8 @@ public WorkflowContext transfer(Integer taskId, String remark, List<String> to,
public WorkflowContext complete(Integer taskId, String remark, String operator) {
WorkflowContext context = workflowContextBuilder
.buildContextForTask(taskId, WorkflowAction.COMPLETE, remark, operator);
ServiceTask serviceTask = (ServiceTask) context.getActionContext().getTask();
serviceTask.initListeners(context);
processorExecutor.executeComplete(context.getActionContext().getTask(), context);
return context;
}
Expand Down