Class ProcessEnabledCallback
java.lang.Object
com.aquima.interactions.portal.model.process.wrapper.ProcessEnabledCallback
- All Implemented Interfaces:
IPortalSessionCallback
For internal use only!
Wraps another IPortalSessionCallback
and additionally specifies whether the callback should be executed in
the main session (which executes an AQ_ExecuteTask service call), or the task session (which executes the flow of the
task).
- Since:
- 9.9
- Author:
- Petru Galanton
-
Constructor Summary
ConstructorsConstructorDescriptionProcessEnabledCallback
(IPortalSessionCallback callback, boolean forTaskSession) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(IPortalSession session) Execute the logic of this callback.static ProcessEnabledCallback
forMainSession
(IPortalSessionCallback callback) Returns a wrapper for the given callback which executes in the main session of a ProcessEnabledSession, even if an AQ_ExecuteTask service call is currently executing in the main session.static ProcessEnabledCallback
forTaskSession
(IPortalSessionCallback callback) Returns a wrapper for the given callback which executes in the task session of a ProcessEnabledSession, if an AQ_ExecuteTask service call is currently executing in the main session.boolean
-
Constructor Details
-
ProcessEnabledCallback
-
-
Method Details
-
execute
Description copied from interface:IPortalSessionCallback
Execute the logic of this callback. This logic typically involves calling methods on the IPortalSession given as parameter.- Specified by:
execute
in interfaceIPortalSessionCallback
- Parameters:
session
- the session involved in the callback's logic
-
isForTaskSession
public boolean isForTaskSession() -
forMainSession
Returns a wrapper for the given callback which executes in the main session of a ProcessEnabledSession, even if an AQ_ExecuteTask service call is currently executing in the main session.- Parameters:
callback
- the callback to be executed- Returns:
- the callback wrapper
-
forTaskSession
Returns a wrapper for the given callback which executes in the task session of a ProcessEnabledSession, if an AQ_ExecuteTask service call is currently executing in the main session. If an AQ_ExecuteTask service call is not currently executing, the callback will not be called.- Parameters:
callback
- the callback to be executed- Returns:
- the callback wrapper
-