![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
This section describes the various models of asynchronous advice working in the TIBCO ActiveMatrix BusinessWorks engine.
• The engine calls execute() to start the execution.
• The advice sends the signals back to the ActiveMatrix BusinessWorks engine, when it finishes executing.
• The engine calls postExecute() to finish executing the implementation.The ActiveMatrix BusinessWorks engine’s job thread is not blocked until the advice finishes executing and produces its result.
• 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.
• All the logic that requires access to this object should be moved to execute(), postExecute() or cancelled().Figure 15 shows the threading model.Figure 15 Threading ModelFigure 16 Threading Model (Timeout)
• When implementing the cancelled() method, perform a graceful stop of the advice thread.
• Do not use AspectProcessContext on the advice (parallel) thread.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |