Interface WorkflowAttributeRegister<T>

Type Parameters:
T - the type of data returned by the register

public interface WorkflowAttributeRegister<T>
Interface for implementing custom workflow attribute registers. WorkflowAttributeRegister provides the mechanism for loading and registering transient attributes from external sources during workflow execution.

Attribute registers are used to load data that should be available as transient attributes for a single workflow invocation. They can retrieve data from databases, external services, configuration systems, or any other data source required by the workflow.

Custom attribute registers are registered with the workflow engine through the ExtensionProvider and can be referenced in workflow definitions by type and value.

Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Registers attributes by loading data from external sources and returns the loaded data for use in the workflow.
  • Method Details

    • registerAttribute

      T registerAttribute(WorkflowExecutionContext context, Register register) throws WorkflowException
      Registers attributes by loading data from external sources and returns the loaded data for use in the workflow.
      Parameters:
      register - the register definition containing type, value, and arguments
      context - the execution context
      Returns:
      the loaded data to be registered as transient attributes
      Throws:
      WorkflowException - if there's an error loading the data