Package com.yworkflow.common
Interface WorkflowRunnable<T extends Throwable>
- Type Parameters:
T- the type of exception that may be thrown
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface that represents an operation that takes no arguments, returns no result,
and potentially throws a checked exception. This is similar to Java's
Runnable but allows
for checked exceptions.
WorkflowRunnable is used throughout the yWorkflow system for operations that perform side effects without returning values, such as logging, notifications, cleanup operations, and other procedural tasks that may fail.
This interface is particularly useful in workflow contexts where operations may fail due to business rules, external service calls, or other recoverable conditions that should be handled explicitly.
- Since:
- 1.0
- See Also:
-
Method Summary
-
Method Details
-
run
Performs this operation.- Throws:
T- if the operation fails
-