Asynchronous Advice Implementations : Working of Asynchronous Advices in BW Engine

Working of Asynchronous Advices in BW Engine
Execution Model (Successful Execution)
Successful execution - execute() and postExecute()
The engine calls execute() to start the execution.
The engine calls postExecute() to finish executing the implementation.
The BW engine’s job thread is not blocked until the advice finishes executing and produces its result.
Execution Model (timeout)
Timed out execution: execute() and cancelled()
The engine calls execute() to start the execution.
Before the advice returns from execute(), it sets a timeout.
When a timeout occurs, the engine calls cancelled() to finish executing the implementation.
AspectProcessContext cannot be used by asynchronous advices on the parallel thread
 
 
 
 
Threading Model: Asynchronous Advice Implementations
Figure 15 shows the threading model.
Figure 15 Threading Model
Asynchronous Advice Example
Threading Model: Asynchronous Advice Implementations (Timeout)
Figure 16 Threading Model (Timeout)