Interface RunContextManager

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RunContextManager
Opens a correlation scope for a drive or step so callers can attach run metadata (for example MDC) without the runtime depending on a logging API.
  • Field Details

  • Method Details

    • open

      RunContextManager.Scope open(String runId, String workflowId, String stepId, String agentId)
      Opens a scope for the given identifiers. Closing the returned scope ends the scope; callers should use try-with-resources.
      Parameters:
      runId - current run id, or null when not yet assigned
      workflowId - workflow definition id
      stepId - current step id, or null when not step-scoped
      agentId - current agent id, or null when not agent-scoped
      Returns:
      scope to close when the operation finishes