Class NoOpWorkflowAttributeResolver
java.lang.Object
com.yworkflow.definition.model.extension.noop.NoOpWorkflowAttributeResolver
- All Implemented Interfaces:
WorkflowAttributeResolver
No-operation implementation of WorkflowAttributeResolver. NoOpWorkflowAttributeResolver provides
a default implementation that performs no actual attribute resolution, returning the input as-is
or empty attributes.
- Since:
- 1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve(WorkflowExecutionContext context) Resolves attributes by returning an empty mutable attributes collection.resolve(WorkflowExecutionContext context, String input) Resolves a single input value by returning it as-is without any processing.
-
Constructor Details
-
NoOpWorkflowAttributeResolver
public NoOpWorkflowAttributeResolver()Default Constructor.
-
-
Method Details
-
resolve
Resolves a single input value by returning it as-is without any processing.- Specified by:
resolvein interfaceWorkflowAttributeResolver- Parameters:
context- the attributes context (ignored in this implementation)input- the input value to resolve- Returns:
- an Optional containing the input value if not null, empty otherwise
-
resolve
Resolves attributes by returning an empty mutable attributes collection.- Specified by:
resolvein interfaceWorkflowAttributeResolver- Parameters:
context- the context (ignored in this implementation)- Returns:
- an empty MutableAttributes instance
-