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
FieldsModifier and TypeFieldDescriptionstatic final IntegerConstant for sorting by the number of tasks in the process with "Completed" statusstatic final IntegerConstant for sorting by the number of tasks in the process with "Current" statusstatic final IntegerConstant for sorting by the number of milliseconds that have elapsed since the process startedstatic final IntegerConstant for sorting by the process end timestatic final IntegerConstant for sorting by the process idstatic final IntegerConstant for sorting by the username of the process initiatorstatic final IntegerConstant for sorting by the process model namestatic final IntegerConstant for sorting by process namestatic final IntegerConstant for sorting by the parent process namestatic final IntegerConstant for sorting by the priority namestatic final IntegerConstant for sorting by the priority namestatic final IntegerConstant for sorting by the start timestatic final IntegerConstant for sorting by the status namestatic final intConstant indicating a running process.static final intConstant indicating a cancelled process.static final intConstant indicating a completed process.static final intConstant indicating a paused process.static final intConstant indicating a paused-by-exception process. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the uuid of the process if it is AutoscaleRetrieves the number of completed tasks in the processRetrieves the number of tasks that are activeGets the designer of the running process modelRetrieves 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.booleanbooleanReturns 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 startedintRetrieves the status of the process.Retrieves the string representation of the current status of the process.voidsetAutoscaleUuid(String autoscaleUuid_) Sets the uuid of the autoscale processvoidsetCompletedTaskCount(Integer taskCount_) Sets the number of completed tasks in the processvoidsetCurrentTaskCount(Integer taskCount_) Sets the number of active tasksvoidsetDashboardId(Long dashboardId_) voidsetDesigner(String designer_) Sets the name of the designer of running process modelvoidsetElapsedMilliseconds(Long milliseconds_) Sets the number of milliseconds since the process has startedvoidsetEndTime(Timestamp time_) Sets the time at which the process ended.voidsetException(ProcessException exception_) Sets the ProcessException that occurred in the process execution.voidsetFavorite(boolean favorite_) voidsetMutablePriority(boolean mutablePriority_) Sets whether or not the priority of this process can be changedvoidsetParentId(Long parentId_) Sets the id of the parent processvoidsetParentName(String parentName_) Sets the name of the process' parentvoidsetPermissions(ProcessPermissions permissions_) Sets the permissions of the user for the processvoidsetProcessModelId(Long modelId_) Sets the id of the process modelvoidsetProcessModelName(String modelName_) Sets the name of the process modelvoidsetProcessModelVersion(String version_) Sets the version of the Process ModelvoidsetStartTime(Timestamp time_) Sets the time at which the process startedvoidsetStatus(int status_) Sets status of the process.voidsetStatusName(String name_) Sets the string representation of the current status of the process.toString()Returns a string representation of theIdentity.voidtoXML(StringBuilder buffer_) Methods inherited from class com.appiancorp.suiteapi.process.ProcessProperties
getDepth, getInitiator, getPriority, setDepth, setInitiator, setPriority
-
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
-
getAutoscaleUuid
Gets the uuid of the process if it is Autoscale -
setAutoscaleUuid
Sets the uuid of the autoscale process- Parameters:
autoscaleUuid_- of the process
-
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
-
getDesigner
Gets the designer of the running process model- Returns:
- the designer of the process model
-
setDesigner
Sets the name of the designer of running process model- Parameters:
designer_- the name to set for the parent process
-
toString
Description copied from class:IdentityReturns a string representation of theIdentity. In general, the toString method returns a string that "textually represents" this object.- Overrides:
toStringin classProcessProperties- Returns:
- String representation of the object
-