Package com.aquima.interactions.process
Interface IProcessData
- All Known Subinterfaces:
IProcessEngine
- All Known Implementing Classes:
ProcessEngine
,ProcessEngineDelegate
,ReadonlyProcessEngine
public interface IProcessData
-
Method Summary
Modifier and TypeMethodDescriptionfindByCriteria
(CaseViewCriteria criteria) Find case views based on the specified criteria.findByCriteria
(TaskViewCriteria criteria) Find task views based on the specified criteria.findCases
(CaseCriteria caseFilter) This method returns an array containing views of all cases that are valid after applying the filters from the filter contextfindTasks
(TaskCriteria taskFilter) This method returns an array containing views of all tasks that are valid after applying the filters from the filter context.findWaitingCases
(String messageEventName, Set<Long> specificCaseIds) This method returns the cases waiting for a message event.getAvailableCases
(IUserData userData) This method will return an array containing the cases that are available for the supplied user.getAvailableTasks
(IUserData userData, Long caseId) This method returns an array containing the tasks that are available for the supplied user.getCase
(long caseId) This method returns the case for the specified ID.getCaseState
(long caseId) Gets the case stategetTask
(long taskId) This method returns the task for the specified ID.getTaskModel
(long taskId) This method returns the task for the specified ID.This method returns an array containing all the tasks that have not yet been assigned.
-
Method Details
-
getTask
This method returns the task for the specified ID.- Parameters:
taskId
- The ID of the requested task.- Returns:
- The task for the specified ID.
- Throws:
UnknownProcessTaskException
- This exception is thrown when the task could not be found.
-
getTaskModel
This method returns the task for the specified ID.- Parameters:
taskId
- The ID of the requested task.- Returns:
- The task for the specified ID.
- Throws:
UnknownProcessTaskException
- This exception is thrown when the task could not be found.
-
getAvailableTasks
This method returns an array containing the tasks that are available for the supplied user. This method is also known as the "tasks for me" in the documentation.- Parameters:
userData
- The data of the user to which the task must be assigned.caseId
- ID of the case to which the tasks must belong.- Returns:
- an array containing the tasks for the supplied user.
-
getUnassignedTasks
IProcessTask[] getUnassignedTasks()This method returns an array containing all the tasks that have not yet been assigned.- Returns:
- an array containing all the tasks that have not yet been assigned.
-
findTasks
This method returns an array containing views of all tasks that are valid after applying the filters from the filter context.- Parameters:
taskFilter
- TaskFilterContext to filter the tasks that are returned.- Returns:
- an array containing the task views.
-
findCases
This method returns an array containing views of all cases that are valid after applying the filters from the filter context- Parameters:
caseFilter
- CaseFilterContext to filter the cases that are returned.- Returns:
- an array containing the case views
-
getAvailableCases
This method will return an array containing the cases that are available for the supplied user.- Parameters:
userData
- Object containing the information about the current user.- Returns:
- an array containing the cases that are available for the supplied user.
-
getCase
This method returns the case for the specified ID.- Parameters:
caseId
- The ID of the requested case.- Returns:
- The case for the specified ID.
- Throws:
UnknownProcessCaseException
- This exception is thrown when the case could not be found.
-
findWaitingCases
This method returns the cases waiting for a message event.- Parameters:
messageEventName
- The message event name, may not be null.specificCaseIds
- A set of case ids, may be null. If not null, only those cases are processed.- Returns:
- The case models waiting for the message event.
-
findByCriteria
Find task views based on the specified criteria.This method alters the criteria by enabling or disabling checking for restriced users depending on the ignore mode setting of the criteria and on whether any authorization algorithms use the 2-man rule. If the Application ID is not ignored, and no authorization algorithm in this process engine uses the 2-man rule, then checking for restricted users is disabled.
For an equivalent method which does not alter the criteria, see
IProcessCaseDao.findByCriteria(TaskViewCriteria)
.- Parameters:
criteria
- the task criteria to search for- Returns:
TaskViewResult
the tasks matching the criteria
-
findByCriteria
Find case views based on the specified criteria.- Parameters:
criteria
- the case criteria to search for- Returns:
CaseViewResult
the cases matching the criteria
-
getCaseState
Gets the case state- Parameters:
caseId
- the case ID- Returns:
- the case state
-