- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceResource scope tied to a run or step; ends correlation when closed. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RunContextManagerImplementation that always returnsNO_OP_SCOPE.static final RunContextManager.ScopeNo-op scope that performs nothing onRunContextManager.Scope.close(). -
Method Summary
-
Field Details
-
NO_OP_SCOPE
No-op scope that performs nothing onRunContextManager.Scope.close(). -
NO_OP
Implementation that always returnsNO_OP_SCOPE.
-
-
Method Details
-
open
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, ornullwhen not yet assignedworkflowId- workflow definition idstepId- current step id, ornullwhen not step-scopedagentId- current agent id, ornullwhen not agent-scoped- Returns:
- scope to close when the operation finishes
-