Class ProcessEnabledCallback

java.lang.Object
com.aquima.interactions.portal.model.process.wrapper.ProcessEnabledCallback
All Implemented Interfaces:
IPortalSessionCallback

public class ProcessEnabledCallback extends Object implements 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 Details

    • ProcessEnabledCallback

      public ProcessEnabledCallback(IPortalSessionCallback callback, boolean forTaskSession)
  • Method Details

    • execute

      public void execute(IPortalSession session)
      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 interface IPortalSessionCallback
      Parameters:
      session - the session involved in the callback's logic
    • isForTaskSession

      public boolean isForTaskSession()
    • forMainSession

      public 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.
      Parameters:
      callback - the callback to be executed
      Returns:
      the callback wrapper
    • forTaskSession

      public 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. 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