Class ProcessScope
java.lang.Object
com.aquima.interactions.portal.model.process.ProcessScope
- All Implemented Interfaces:
IProcessScope
Internal process scope implementation that manages all active process tasks/cases on the session scope.
- Since:
- 7.1
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionProcessScope
(ISessionScope sessionScope, IProcessEngine engine) Internal process scope constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateProcessCase
(long id) This method activates a process case.void
activateProcessTask
(long id) This method activates a process task.void
addAffectedCases
(long[] ids) This method stores created and updated casesvoid
void
This method clears the current active process task.void
This method clears the updated cases that are storedlong
This method returns the current active process case.long
This method returns the current active process task.long[]
This method returns the updated and created casesThis method return the process engine.
-
Constructor Details
-
ProcessScope
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 interfaceIProcessScope
- 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 interfaceIProcessScope
- Parameters:
id
- The id of the process task to activate, may not be null.
-
clearActiveProcessCase
public void clearActiveProcessCase()- Specified by:
clearActiveProcessCase
in interfaceIProcessScope
-
clearActiveProcessTask
public void clearActiveProcessTask()Description copied from interface:IProcessScope
This method clears the current active process task.- Specified by:
clearActiveProcessTask
in interfaceIProcessScope
-
getActiveProcessCase
public long getActiveProcessCase()Description copied from interface:IProcessScope
This method returns the current active process case.- Specified by:
getActiveProcessCase
in interfaceIProcessScope
- 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 interfaceIProcessScope
- 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 interfaceIProcessScope
- 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 interfaceIProcessScope
-
getAffectedCases
public long[] getAffectedCases()Description copied from interface:IProcessScope
This method returns the updated and created cases- Specified by:
getAffectedCases
in interfaceIProcessScope
- Returns:
- The ids of the updated\created cases
-
getProcessEngine
Description copied from interface:IProcessScope
This method return the process engine.- Specified by:
getProcessEngine
in interfaceIProcessScope
- Returns:
- The process engine, never null.
-