Class FlowCompletedEvent
java.lang.Object
cloud.opencode.base.event.Event
cloud.opencode.base.flow.event.FlowCompletedEvent
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 Summary
ConstructorsConstructorDescriptionFlowCompletedEvent(String instanceId, String flowKey, InstanceStatus status) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class Event
cancel, getId, getSource, getTimestamp, isCancelled, toString
-
Constructor Details
-
FlowCompletedEvent
Creates a new event. 创建事件。- Parameters:
instanceId- instance id — 实例 IDflowKey- flow key — 业务 keystatus- terminal status — 终态- Since:
- JDK 25, opencode-base-flow V1.0.5
-
-
Method Details
-
getInstanceId
- Returns:
- instance id — 实例 ID
-
getFlowKey
- Returns:
- flow key — 业务 key
-
getStatus
- Returns:
- terminal status — 终态
-