Class ProcessScope

java.lang.Object
com.aquima.interactions.portal.model.process.ProcessScope
All Implemented Interfaces:
IProcessScope

public class ProcessScope extends Object implements IProcessScope
Internal process scope implementation that manages all active process tasks/cases on the session scope.
Since:
7.1
Author:
Jon van Leuven
  • Constructor Details

    • ProcessScope

      public ProcessScope(ISessionScope sessionScope, IProcessEngine engine)
      Internal process scope constructor. Retrieve an instance of the process scope via the portal context.
      Parameters:
      sessionScope - The session scope.
      engine - The process engine.
  • Method Details

    • activateProcessCase

      public void activateProcessCase(long id)
      Description copied from interface: IProcessScope
      This method activates a process case.
      Specified by:
      activateProcessCase in interface IProcessScope
      Parameters:
      id - The id of the process case to activate, may not be null.
    • activateProcessTask

      public void activateProcessTask(long id)
      Description copied from interface: IProcessScope
      This method activates a process task.
      Specified by:
      activateProcessTask in interface IProcessScope
      Parameters:
      id - The id of the process task to activate, may not be null.
    • clearActiveProcessCase

      public void clearActiveProcessCase()
      Specified by:
      clearActiveProcessCase in interface IProcessScope
    • clearActiveProcessTask

      public void clearActiveProcessTask()
      Description copied from interface: IProcessScope
      This method clears the current active process task.
      Specified by:
      clearActiveProcessTask in interface IProcessScope
    • getActiveProcessCase

      public long getActiveProcessCase()
      Description copied from interface: IProcessScope
      This method returns the current active process case.
      Specified by:
      getActiveProcessCase in interface IProcessScope
      Returns:
      The GUID of the current active process case, never null.
    • getActiveProcessTask

      public long getActiveProcessTask()
      Description copied from interface: IProcessScope
      This method returns the current active process task.
      Specified by:
      getActiveProcessTask in interface IProcessScope
      Returns:
      The ID of the current active process task.
    • addAffectedCases

      public void addAffectedCases(long[] ids)
      Description copied from interface: IProcessScope
      This method stores created and updated cases
      Specified by:
      addAffectedCases in interface IProcessScope
      Parameters:
      ids - The ids of the process cases to store, may not be null.
    • clearAffectedCases

      public void clearAffectedCases()
      Description copied from interface: IProcessScope
      This method clears the updated cases that are stored
      Specified by:
      clearAffectedCases in interface IProcessScope
    • getAffectedCases

      public long[] getAffectedCases()
      Description copied from interface: IProcessScope
      This method returns the updated and created cases
      Specified by:
      getAffectedCases in interface IProcessScope
      Returns:
      The ids of the updated\created cases
    • getProcessEngine

      public IProcessEngine getProcessEngine()
      Description copied from interface: IProcessScope
      This method return the process engine.
      Specified by:
      getProcessEngine in interface IProcessScope
      Returns:
      The process engine, never null.