public interface ContextInterceptor
Represents an interceptor that is called just before and just after a workflow is processed. This gives a last chance to modify input and output of several services.
For instance, an interceptor could intercept an EngineRequestBuilder
the Context
is going to use and
the list of nuts
it returns when the job is done.
Modifier and Type | Method and Description |
---|---|
Workflow |
afterGetWorkflow(String id,
Workflow workflow)
Called just after a workflow has been retrieved.
|
ConvertibleNut |
afterProcess(ConvertibleNut nut,
String path)
Called just after the workflow has been executed to retrieve one path.
|
List<ConvertibleNut> |
afterProcess(List<ConvertibleNut> nuts)
Called just after the workflow has been executed.
|
String |
beforeGetWorkflow(String workflowId)
Called just before if going to be retrieved with a specified ID.
|
EngineRequestBuilder |
beforeProcess(EngineRequestBuilder request)
Called just before the workflow is executed.
|
EngineRequestBuilder |
beforeProcess(EngineRequestBuilder request,
String path)
Called just before the workflow is executed to retrieve one path.
|
String beforeGetWorkflow(String workflowId)
Called just before if going to be retrieved with a specified ID.
workflowId
- the retrieved workflow IDWorkflow afterGetWorkflow(String id, Workflow workflow)
Called just after a workflow has been retrieved.
id
- the workflow IDworkflow
- the retrieved workflowEngineRequestBuilder beforeProcess(EngineRequestBuilder request)
Called just before the workflow is executed.
request
- the request builderEngineRequestBuilder beforeProcess(EngineRequestBuilder request, String path)
Called just before the workflow is executed to retrieve one path.
request
- the request builderpath
- the pathList<ConvertibleNut> afterProcess(List<ConvertibleNut> nuts)
nuts
- the nutsContext
should return or give to the next interceptorConvertibleNut afterProcess(ConvertibleNut nut, String path)
nut
- the nutpath
- the pathContext
should return or give to the next interceptorCopyright © 2012-2015. All Rights Reserved.