Interface WorkflowAttributeResolver

All Known Implementing Classes:
NoOpWorkflowAttributeResolver

public interface WorkflowAttributeResolver
Interface for implementing custom workflow attribute resolvers. WorkflowAttributeResolver provides the mechanism for resolving attribute references and expressions in workflow definitions, allowing for dynamic attribute resolution and transformation.
Since:
1.0
See Also:
  • Method Details

    • resolve

      Resolves a single attribute reference or expression and returns the resolved value.
      Parameters:
      context - the execution context
      input - the input string to resolve (it may be a variable reference or expression)
      Returns:
      an Optional containing the resolved value if found, empty otherwise
      Throws:
      WorkflowException - if there's an error resolving the attribute
    • resolve

      Resolves all attributes and returns a new MutableAttributes instance with resolved values. This method can add computed attributes, transform existing attributes, or perform any other attribute resolution logic.
      Parameters:
      context - the execution context
      Returns:
      a new MutableAttributes instance with resolved attributes
      Throws:
      WorkflowException - if there's an error resolving the attributes