Class FlowStartedEvent

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

public final class FlowStartedEvent extends Event
Domain event raised when a FlowInstance is started. 流程实例启动时发布的领域事件。
Since:
JDK 25, opencode-base-flow V1.0.5
Author:
Leon Soo
  • Constructor Details

    • FlowStartedEvent

      public FlowStartedEvent(String instanceId, String flowKey, String initiatorId)
      Creates a new event. 创建事件。
      Parameters:
      instanceId - instance id — 实例 ID
      flowKey - flow key — 业务 key
      initiatorId - initiator user id — 发起人
      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
    • getInitiatorId

      public String getInitiatorId()
      Returns:
      initiator user id — 发起人