接口 WorkflowExecutionListener
public interface WorkflowExecutionListener
Optional listener for workflow execution results.
Implement this interface and register as a Spring Bean to receive execution logs after each workflow run (e.g., for persistence or monitoring).
- 从以下版本开始:
- 2024
- 作者:
- Levi Li
-
方法概要
修饰符和类型方法说明voidonExecutionComplete(Integer workflowId, Integer revision, Map<Integer, List<WorkflowTaskLog>> logs) Called after a workflow execution completes (success or failure).
-
方法详细资料
-
onExecutionComplete
void onExecutionComplete(Integer workflowId, Integer revision, Map<Integer, List<WorkflowTaskLog>> logs) Called after a workflow execution completes (success or failure).- 参数:
workflowId- the workflow that was executedrevision- the revision of the workflow definition at execution timelogs- execution logs grouped by level
-