Class WorkflowExecutionContext

java.lang.Object
com.bytedesk.core.workflow.WorkflowExecutionContext

public class WorkflowExecutionContext extends Object
Lightweight context shared with workflow nodes while executing.
  • Field Details

    • workflow

      private final WorkflowEntity workflow
    • request

      private final WorkflowRequest request
    • workflowJson

      private final com.alibaba.fastjson2.JSONObject workflowJson
    • nodes

      private final com.alibaba.fastjson2.JSONArray nodes
    • edges

      private final com.alibaba.fastjson2.JSONArray edges
  • Constructor Details

    • WorkflowExecutionContext

      public WorkflowExecutionContext()
  • Method Details

    • findNodeById

      public com.alibaba.fastjson2.JSONObject findNodeById(String nodeId)
    • findNextNodeId

      public String findNextNodeId(String nodeId)
    • findNextNodeId

      public String findNextNodeId(String nodeId, String sourcePortId)
    • findTargetNodeIdByEdgeId

      public String findTargetNodeIdByEdgeId(String edgeId)