Package com.appiancorp.suiteapi.process
Class ProcessModel
java.lang.Object
com.appiancorp.suiteapi.common.LocalizedIdentity
com.appiancorp.suiteapi.process.AbstractProcessModel
com.appiancorp.suiteapi.process.ProcessModel
- All Implemented Interfaces:
JSONable
,JSONCacheable
,AppianTypeHolder
,Serializable
The template from which processes are created. A process model contains nodes that are connected
to each other through flows (aka connections). Each node represents an activity to be performed
by either the system or a user. Nodes have one primary activity, but can have an arbitrary number
of pre- and post-activities, as long as such activities are unattended (i.e. do not require user
interaction). The process model also holds such meta data as who created it, when, and what group
the model is associated with. Process models are generally created through the UI designer.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Inner class that holds the name, id, and description of a process model. -
Field Summary
Fields inherited from class com.appiancorp.suiteapi.process.AbstractProcessModel
AUTO_ARCHIVE, AUTO_DELETE, AUTOSCALE_EXEC_ENVIRONMENT, DEFAULT_COMPLETION, K_EXEC_ENVIRONMENT, LATEST_PUBLISHED_VERSION, NO_CLEANUP, RESULT_CODE_INVALID, RESULT_CODE_NO_PERM_PUBLISH, RESULT_CODE_SUCCESS, STATUS_DRAFT, STATUS_PUBLISHED, STATUS_VERSION, SYS_AUTOARCHIVE, SYS_AUTOARCHIVE_DELAY, SYSTEM_DEFAULT
Fields inherited from interface com.appiancorp.suiteapi.common.JSONable
hiddenAttributes$TRANSIENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillInAppianTypes
(AppianTypeCache appianCache_) Adds the primary keys of the Appian-typed objects maintained by the elements in the given array to the cache.Long[]
Gets the list of data types referenced by this model.Gets the nodes that this model comprises.Gets the list of process variables used by this model.void
Resets the UUID of each node and the persistentId of each event in this process model tonull
, so that the database will generate new UUIDs/ids the next time the process model is saved.void
setDatatypeReferences
(Long[] datatypeReferences_) Sets the data types referenced by this model.void
setLogging
(ProcessModelLogging _logging) void
setProcessNodes
(ProcessNode[] processNodes_) Sets the nodes that this model comprises.void
setVariables
(ProcessVariable[] variables_) Sets the process variables for this model.void
toString()
Generates a string representation of this model for debugging.void
Methods inherited from class com.appiancorp.suiteapi.process.AbstractProcessModel
fillInAppianTypes, getAcSchemas, getAnnotations, getAttachments, getAutoArchiveDelay, getAutoDeleteDelay, getAutoscaleValidated, getCleanupAction, getCreatorUsername, getDeadline, getDefaultProcessSecurity, getDescription, getEmailAttachmentFolderId, getExecutionEnvironment, getFolderId, getFormConfig, getFormConfigMap, getGroupOwnerId, getHiddenAttributes, getIsPublic, getLanes, getLastModifiedUsername, getLatestVersion, getLockedBy, getLockedByTime, getNotes, getNotesWithContent, getNtfSettings, getOwnerUsername, getPermissions, getPriority, getProcessName, getSchedules, getSecurity, getState, getTargetCompletion, getTimeStampCreated, getTimeStampUpdated, getTimeZoneId, getUuid, getVersion, getVersionStatus, isEnabled, isModified, isMutablePriority, isUseProcessInitiatorTimeZone, isValidated, setAcSchemas, setAnnotations, setAttachments, setAutoArchiveDelay, setAutoDeleteDelay, setAutoscaleValidated, setCleanupAction, setCreatorUsername, setDeadline, setDefaultProcessSecurity, setDescription, setEmailAttachmentFolderId, setEnabled, setExecutionEnvironment, setFolderId, setFormConfigMap, setGroupOwnerId, setIsPublic, setLanes, setLastModifiedUsername, setLatestVersion, setLockedBy, setLockedByTime, setModified, setMutablePriority, setNotes, setNtfSettings, setOwnerUsername, setPermissions, setPriority, setProcessName, setSchedules, setSecurity, setState, setTargetCompletion, setTimeStampCreated, setTimeStampUpdated, setTimeZoneId, setUseProcessInitiatorTimeZone, setUuid, setValidated, setVersion, setVersionStatus
-
Constructor Details
-
ProcessModel
public ProcessModel()
-
-
Method Details
-
getProcessNodes
Gets the nodes that this model comprises.- Returns:
- the process nodes contained in the process model
-
setProcessNodes
Sets the nodes that this model comprises.- Parameters:
processNodes_
- an array of the nodes in this model.
-
getVariables
Gets the list of process variables used by this model.- Returns:
- the process variables of this model.
-
sortVariables
public void sortVariables() -
setVariables
Sets the process variables for this model.- Parameters:
variables_
- the process variables used by this model.
-
setDatatypeReferences
Sets the data types referenced by this model. The data types are set by the system when this bean is returned. Calling this method has no effect.- Parameters:
datatypeReferences_
- the data types referenced by this model.
-
getDatatypeReferences
Gets the list of data types referenced by this model.- Returns:
- the data types referenced by this model.
-
getLogging
- Returns:
ProcessModelLogging
of this model.
-
setLogging
- Parameters:
_logging
- theProcessModelLogging
used by this model.
-
fillInAppianTypes
Description copied from class:AbstractProcessModel
Adds the primary keys of the Appian-typed objects maintained by the elements in the given array to the cache. This method is cheap.- Specified by:
fillInAppianTypes
in interfaceAppianTypeHolder
- Overrides:
fillInAppianTypes
in classAbstractProcessModel
- Parameters:
appianCache_
- cache of Appian-typed objects.
-
updateFromDescriptor
-
toString
Generates a string representation of this model for debugging.- Overrides:
toString
in classLocalizedIdentity
- Returns:
- String representation of the object
-
resetNodesUUIDsAndEventPersistentIds
public void resetNodesUUIDsAndEventPersistentIds()Resets the UUID of each node and the persistentId of each event in this process model tonull
, so that the database will generate new UUIDs/ids the next time the process model is saved.
-