Class FlowCompletedEvent

java.lang.Object
cloud.opencode.base.event.Event
cloud.opencode.base.flow.event.FlowCompletedEvent

public final class FlowCompletedEvent extends Event
Domain event raised when a FlowInstance reaches a terminal status (InstanceStatus.COMPLETED / InstanceStatus.TERMINATED / InstanceStatus.WITHDRAWN). 流程实例进入终态时发布的领域事件。
Since:
JDK 25, opencode-base-flow V1.0.5
Author:
Leon Soo
  • Constructor Details

    • FlowCompletedEvent

      public FlowCompletedEvent(String instanceId, String flowKey, InstanceStatus status)
      Creates a new event. 创建事件。
      Parameters:
      instanceId - instance id — 实例 ID
      flowKey - flow key — 业务 key
      status - terminal status — 终态
      Since:
      JDK 25, opencode-base-flow V1.0.5
  • Method Details

    • getInstanceId

      public String getInstanceId()
      Returns:
      instance id — 实例 ID
    • getFlowKey

      public String getFlowKey()
      Returns:
      flow key — 业务 key
    • getStatus

      public InstanceStatus getStatus()
      Returns:
      terminal status — 终态