Class FlowEventBusBridge
java.lang.Object
cloud.opencode.base.flow.internal.FlowEventBusBridge
Cross-package bridge into the package-private
FlowEventBus so the
operation/ package can publish domain events without exposing the
underlying bus type.
跨包桥接到包私有 FlowEventBus,让 operation/ 包能发布领域事件。- Since:
- JDK 25, opencode-base-flow V1.0.5
- Author:
- Leon Soo
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidPublish a task-circulated event (best-effort).static voidpublishCompleted(String instanceId, String flowKey, InstanceStatus status) Publish a flow-completed event (best-effort).static voidpublishStarted(String instanceId, String flowKey, String initiatorId) Publish a flow-started event (best-effort).
-
Method Details
-
publishStarted
Publish a flow-started event (best-effort). 发布 flow-started 事件(best-effort)。- Parameters:
instanceId- instance id — 实例 IDflowKey- business key — 业务 keyinitiatorId- initiator user id — 发起人- Since:
- JDK 25, opencode-base-flow V1.0.5
-
publishCompleted
Publish a flow-completed event (best-effort). 发布 flow-completed 事件(best-effort)。- Parameters:
instanceId- instance id — 实例 IDflowKey- business key — 业务 keystatus- terminal status — 终态- Since:
- JDK 25, opencode-base-flow V1.0.5
-
publishCirculated
public static void publishCirculated(String instanceId, String taskId, String fromUserId, List<String> toUserIds) Publish a task-circulated event (best-effort). 发布 task-circulated 事件(best-effort)。- Parameters:
instanceId- instance id — 实例 IDtaskId- related task id — 关联任务fromUserId- caller user id — 调用者toUserIds- notify list — 被抄送 userId 列表- Since:
- JDK 25, opencode-base-flow V1.0.5
-