Class ReadonlyProcessScope

java.lang.Object
com.aquima.interactions.portal.model.process.wrapper.ProcessScopeDelegate
com.aquima.interactions.portal.model.process.wrapper.ReadonlyProcessScope
All Implemented Interfaces:
IProcessScope

public class ReadonlyProcessScope extends ProcessScopeDelegate
Decorator class that wraps a process scope to make it immutable (read-only).
Since:
7.1
Author:
Jon van Leuven
  • Constructor Details

    • ReadonlyProcessScope

      public ReadonlyProcessScope(IProcessScope processScope)
      Constructs a read-only wrapper for the specified process scope.
      Parameters:
      processScope - The process scope that should be wrapped in this read-only decorator.
  • Method Details

    • activateProcessCase

      public void activateProcessCase(GUID id)
      Always throws an InvalidStateException: No modifications allowed on a read only process scope.
      Parameters:
      id - The id of the process case to activate, may not be null.
    • activateProcessTask

      public void activateProcessTask(long id)
      Always throws an InvalidStateException: No modifications allowed on a read only process scope.
      Specified by:
      activateProcessTask in interface IProcessScope
      Overrides:
      activateProcessTask in class ProcessScopeDelegate
      Parameters:
      id - The id of the process task to activate, may not be null.
    • getProcessEngine

      public IProcessEngine getProcessEngine()
      This method returns a readonly process engine.
      Specified by:
      getProcessEngine in interface IProcessScope
      Overrides:
      getProcessEngine in class ProcessScopeDelegate
      Returns:
      The readonly process engine.
    • setCurrentUser

      public void setCurrentUser(IUserData currentUser)
      Always throws an InvalidStateException: No modifications allowed on a read only process scope.
      Parameters:
      currentUser - The current user, may not be null.