Package com.yworkflow
Interface WorkflowInterceptor
public interface WorkflowInterceptor
Provides interception capabilities for workflow engine components. Interceptors allow for
cross-cutting concerns such as logging, monitoring, security, and performance measurement to be
applied to workflow operations.
Interceptors follow the decorator pattern, wrapping the original component with additional functionality. Each interceptor method receives a delegate component and returns a wrapped version that can add behavior before, after, or around the original operations.
Multiple interceptors can be chained together, with each interceptor wrapping the result of the previous one. This allows for complex interception scenarios where multiple concerns need to be applied.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintercept(MutableAttributes delegate) Intercepts the MutableAttributes component, allowing for cross-cutting concerns to be applied to attribute operations.intercept(WorkflowInstance delegate) Intercepts the WorkflowInstance component, allowing for cross-cutting concerns to be applied to workflow instance operations.intercept(WorkflowDefinitions delegate) Intercepts the WorkflowDefinitions component, allowing for cross-cutting concerns to be applied to workflow definition operations.intercept(WorkflowEngine delegate) Intercepts the WorkflowEngine component, allowing for cross-cutting concerns to be applied to engine-level operations.intercept(WorkflowInstances delegate) Intercepts the WorkflowInstances component, allowing for cross-cutting concerns to be applied to workflow instance management operations.intercept(WorkflowTransaction delegate) Intercepts the WorkflowTransaction component, allowing for cross-cutting concerns to be applied to transactional operations.
-
Method Details
-
intercept
Intercepts the WorkflowEngine component, allowing for cross-cutting concerns to be applied to engine-level operations.- Parameters:
delegate- the original WorkflowEngine instance- Returns:
- a wrapped WorkflowEngine instance with additional behavior
-
intercept
Intercepts the WorkflowDefinitions component, allowing for cross-cutting concerns to be applied to workflow definition operations.- Parameters:
delegate- the original WorkflowDefinitions instance- Returns:
- a wrapped WorkflowDefinitions instance with additional behavior
-
intercept
Intercepts the WorkflowInstance component, allowing for cross-cutting concerns to be applied to workflow instance operations.- Parameters:
delegate- the original WorkflowInstance instance- Returns:
- a wrapped WorkflowInstance instance with additional behavior
-
intercept
Intercepts the WorkflowInstances component, allowing for cross-cutting concerns to be applied to workflow instance management operations.- Parameters:
delegate- the original WorkflowInstances instance- Returns:
- a wrapped WorkflowInstances instance with additional behavior
-
intercept
Intercepts the MutableAttributes component, allowing for cross-cutting concerns to be applied to attribute operations.- Parameters:
delegate- the original MutableAttributes instance- Returns:
- a wrapped MutableAttributes instance with additional behavior
-
intercept
Intercepts the WorkflowTransaction component, allowing for cross-cutting concerns to be applied to transactional operations.- Parameters:
delegate- the original WorkflowTransaction instance- Returns:
- a wrapped WorkflowTransaction instance with additional behavior
-