Interface WorkflowFunction


public interface WorkflowFunction
Interface for implementing custom workflow functions. WorkflowFunction provides the mechanism for executing business logic during workflow transitions, including pre-functions, post-functions, and state processing functions.

Functions are executed at various points in the workflow lifecycle and can perform operations such as sending notifications, updating external systems, logging events, performing calculations, or any other business logic required by the workflow.

Custom functions 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 Details

    • execute

      void execute(WorkflowExecutionContext context, FunctionContext functionContext, Function function) throws WorkflowException
      Executes the function with the provided context and attributes.
      Parameters:
      context - the execution context
      functionContext - the context in which the function is being executed
      function - the function definition containing type, value, and arguments
      Throws:
      WorkflowException - if there's an error executing the function