Interface WorkflowTransactionalOperation<R,T extends Throwable>

Type Parameters:
R - the type of result returned by the operation
T - the type of exception that can be thrown by the operation

public interface WorkflowTransactionalOperation<R,T extends Throwable>
Functional interface for transactional operations that return a result. WorkflowTransactionalOperation provides a way to execute operations within a transaction context, ensuring atomicity and consistency of workflow operations.
Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes the transactional operation and returns a result.
  • Method Details

    • execute

      R execute() throws T
      Executes the transactional operation and returns a result.
      Returns:
      the result of the operation
      Throws:
      T - if the operation fails