Package com.appiancorp.suiteapi.process
Class ProcessSummary
java.lang.Object
com.appiancorp.suiteapi.common.Identity
com.appiancorp.suiteapi.process.ProcessProperties
com.appiancorp.suiteapi.process.ProcessSummary
- All Implemented Interfaces:
LocalId
,Serializable
- Direct Known Subclasses:
ProcessDetails
Holds high-level, summary metadata about a process.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Integer
Constant for sorting by the number of tasks in the process with "Completed" statusstatic final Integer
Constant for sorting by the number of tasks in the process with "Current" statusstatic final Integer
Constant for sorting by the number of milliseconds that have elapsed since the process startedstatic final Integer
Constant for sorting by the process end timestatic final Integer
Constant for sorting by the process idstatic final Integer
Constant for sorting by the username of the process initiatorstatic final Integer
Constant for sorting by the process model namestatic final Integer
Constant for sorting by process namestatic final Integer
Constant for sorting by the parent process namestatic final Integer
Constant for sorting by the priority namestatic final Integer
Constant for sorting by the priority namestatic final Integer
Constant for sorting by the start timestatic final Integer
Constant for sorting by the status namestatic final int
Constant indicating a running process.static final int
Constant indicating a cancelled process.static final int
Constant indicating a completed process.static final int
Constant indicating a paused process.static final int
Constant indicating a paused-by-exception process. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the number of completed tasks in the processRetrieves the number of tasks that are activeRetrieves the number of milliseconds since the process has startedReturns the time at which the process ended.Returns the ProcessException that occurred in the process execution.boolean
boolean
Returns true if the Priority of the process can be changed else falsegets the id of the parent process if one existsGets the parent process name if one existsRetrieves the permissions of the user for the process.Retrieves the id of the process modelRetrieves the name of the process modelRetrieves the version of the Process ModelRetrieves the time at which the process startedint
Retrieves the status of the process.Retrieves the string representation of the current status of the process.void
setCompletedTaskCount
(Integer taskCount_) Sets the number of completed tasks in the processvoid
setCurrentTaskCount
(Integer taskCount_) Sets the number of active tasksvoid
setDashboardId
(Long dashboardId_) void
setElapsedMilliseconds
(Long milliseconds_) Sets the number of milliseconds since the process has startedvoid
setEndTime
(Timestamp time_) Sets the time at which the process ended.void
setException
(ProcessException exception_) Sets the ProcessException that occurred in the process execution.void
setFavorite
(boolean favorite_) void
setMutablePriority
(boolean mutablePriority_) Sets whether or not the priority of this process can be changedvoid
setParentId
(Long parentId_) Sets the id of the parent processvoid
setParentName
(String parentName_) Sets the name of the process' parentvoid
setPermissions
(ProcessPermissions permissions_) Sets the permissions of the user for the processvoid
setProcessModelId
(Long modelId_) Sets the id of the process modelvoid
setProcessModelName
(String modelName_) Sets the name of the process modelvoid
setProcessModelVersion
(String version_) Sets the version of the Process Modelvoid
setStartTime
(Timestamp time_) Sets the time at which the process startedvoid
setStatus
(int status_) Sets status of the process.void
setStatusName
(String name_) Sets the string representation of the current status of the process.void
toXML
(StringBuilder buffer_) Methods inherited from class com.appiancorp.suiteapi.process.ProcessProperties
getInitiator, getPriority, setInitiator, setPriority, toString
-
Field Details
-
SORT_BY_PROCESS_NAME
Constant for sorting by process name -
SORT_BY_PROCESS_INITIATOR
Constant for sorting by the username of the process initiator -
SORT_BY_PROCESS_STATUS_NAME
Constant for sorting by the status name -
SORT_BY_PROCESS_PRIORITY_NAME
Constant for sorting by the priority name -
SORT_BY_PROCESS_MODEL_NAME
Constant for sorting by the process model name -
SORT_BY_PROCESS_START_TIME
Constant for sorting by the start time -
SORT_BY_PROCESS_END_TIME
Constant for sorting by the process end time -
SORT_BY_PROCESS_ELAPSED_MILLISECONDS
Constant for sorting by the number of milliseconds that have elapsed since the process started -
SORT_BY_PROCESS_CURRENT_TASK_COUNT
Constant for sorting by the number of tasks in the process with "Current" status -
SORT_BY_PROCESS_COMPLETED_TASK_COUNT
Constant for sorting by the number of tasks in the process with "Completed" status -
SORT_BY_PROCESS_ID
Constant for sorting by the process id -
SORT_BY_PROCESS_PARENT_NAME
Constant for sorting by the parent process name -
SORT_BY_PROCESS_PRIORITY
Constant for sorting by the priority name -
STATE_ACTIVE
public static final int STATE_ACTIVEConstant indicating a running process. For use with ProcessExecutionService.getProcessesForGroup.- See Also:
-
STATE_COMPLETED
public static final int STATE_COMPLETEDConstant indicating a completed process. For use with ProcessExecutionService.getProcessesForGroup.- See Also:
-
STATE_PAUSED
public static final int STATE_PAUSEDConstant indicating a paused process. For use with ProcessExecutionService.getProcessesForGroup.- See Also:
-
STATE_CANCELLED
public static final int STATE_CANCELLEDConstant indicating a cancelled process. For use with ProcessExecutionService.getProcessesForGroup.- See Also:
-
STATE_PAUSED_BY_EXCEPTION
public static final int STATE_PAUSED_BY_EXCEPTIONConstant indicating a paused-by-exception process.- See Also:
-
-
Constructor Details
-
ProcessSummary
public ProcessSummary()
-
-
Method Details
-
getFavorite
public boolean getFavorite() -
setFavorite
public void setFavorite(boolean favorite_) -
getException
Returns the ProcessException that occurred in the process execution.- Returns:
- Returns the exception.
-
setException
Sets the ProcessException that occurred in the process execution.- Parameters:
exception_
- process exception
-
getProcessModelVersion
Retrieves the version of the Process Model- Returns:
- the process mode version of this process
-
setProcessModelVersion
Sets the version of the Process Model- Parameters:
version_
- the version for Process Model
-
getMutablePriority
public boolean getMutablePriority()Returns true if the Priority of the process can be changed else false- Returns:
- whether or not the priority of this process can be changed
-
setMutablePriority
public void setMutablePriority(boolean mutablePriority_) Sets whether or not the priority of this process can be changed- Parameters:
mutablePriority_
- true if the priority of the process can be changed
-
getParentId
gets the id of the parent process if one exists- Returns:
- the id of the parent process
-
setParentId
Sets the id of the parent process- Parameters:
parentId_
- the id of the parent to set
-
getParentName
Gets the parent process name if one exists- Returns:
- the parent process' name
-
setParentName
Sets the name of the process' parent- Parameters:
parentName_
- the name to set for the parent process
-
getCompletedTaskCount
Retrieves the number of completed tasks in the process- Returns:
- number of completed Tasks.
-
setCompletedTaskCount
Sets the number of completed tasks in the process- Parameters:
taskCount_
- number of completed tasks.
-
getCurrentTaskCount
Retrieves the number of tasks that are active- Returns:
- number of active tasks
-
setCurrentTaskCount
Sets the number of active tasks- Parameters:
taskCount_
- number of active tasks.
-
getElapsedMilliseconds
Retrieves the number of milliseconds since the process has started- Returns:
- number of milliseconds.
-
setElapsedMilliseconds
Sets the number of milliseconds since the process has started- Parameters:
milliseconds_
- elapsed milliseconds
-
getEndTime
Returns the time at which the process ended. Null if the process is currently active.- Returns:
- Returns the timestamp of the process end time.
-
setEndTime
Sets the time at which the process ended.- Parameters:
time_
- the end timestamp of the process.
-
getProcessModelId
Retrieves the id of the process model- Returns:
- process model id.
-
setProcessModelId
Sets the id of the process model- Parameters:
modelId_
- id of process model to set.
-
getProcessModelName
Retrieves the name of the process model- Returns:
- name of process model.
-
setProcessModelName
Sets the name of the process model- Parameters:
modelName_
- name of the process model to set.
-
getStartTime
Retrieves the time at which the process started- Returns:
- timestamp of the process start time.
-
setStartTime
Sets the time at which the process started- Parameters:
time_
- timestamp of the process start time.
-
getStatusName
Retrieves the string representation of the current status of the process.- Returns:
- status.
-
setStatusName
Sets the string representation of the current status of the process.- Parameters:
name_
- status string of the process.
-
getStatus
public int getStatus()Retrieves the status of the process. Should be one of the STATE_XXX constants.- Returns:
- the status, as one of the STATE_XXX constants.
-
setStatus
public void setStatus(int status_) Sets status of the process. Should be one of the STATE_XXX constants.- Parameters:
status_
- the status, as one of the STATE_XXX constants.
-
getPermissions
Retrieves the permissions of the user for the process. The user is the one under whos context the service instance was created.- Returns:
- ProcessPermission of the user
-
setPermissions
Sets the permissions of the user for the process- Parameters:
permissions_
- ProcessPermissions of the user from the process
-
toXML
-
getDashboardId
-
setDashboardId
-