Class NoOpWorkflowAttributeResolver

java.lang.Object
com.yworkflow.definition.model.extension.noop.NoOpWorkflowAttributeResolver
All Implemented Interfaces:
WorkflowAttributeResolver

public class NoOpWorkflowAttributeResolver extends Object implements 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 Details

    • NoOpWorkflowAttributeResolver

      public NoOpWorkflowAttributeResolver()
      Default Constructor.
  • Method Details

    • resolve

      public Optional<Object> resolve(WorkflowExecutionContext context, String input)
      Resolves a single input value by returning it as-is without any processing.
      Specified by:
      resolve in interface WorkflowAttributeResolver
      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

      public MutableAttributes resolve(WorkflowExecutionContext context)
      Resolves attributes by returning an empty mutable attributes collection.
      Specified by:
      resolve in interface WorkflowAttributeResolver
      Parameters:
      context - the context (ignored in this implementation)
      Returns:
      an empty MutableAttributes instance