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
Nested ClassesModifier and TypeClassDescriptionstatic classInner 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, 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_DEFAULTFields inherited from interface com.appiancorp.suiteapi.common.JSONable
hiddenAttributes$TRANSIENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillInAppianTypes(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 theProcessModelLoggingassociated with this model.Gets the nodes that this model comprises.Gets the list of process variables used by this model.voidResets 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.voidsetDatatypeReferences(Long[] datatypeReferences_) Sets the data types referenced by this model.voidsetLogging(ProcessModelLogging _logging) Sets theProcessModelLoggingfor this model.voidsetProcessNodes(ProcessNode[] processNodes_) Sets the nodes that this model comprises.voidsetVariables(ProcessVariable[] variables_) Sets the process variables for this model.voidtoString()Generates a string representation of this model for debugging.voidMethods inherited from class com.appiancorp.suiteapi.process.AbstractProcessModel
fillInAppianTypes, getAcSchemas, getAnnotations, getAttachments, getAutoArchiveDelay, getAutoDeleteDelay, 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, 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
Gets theProcessModelLoggingassociated with this model.- Returns:
ProcessModelLoggingof this model.
-
setLogging
Sets theProcessModelLoggingfor this model. The log messages are set by the system when this bean is returned. Calling this method has no effect.- Parameters:
_logging- theProcessModelLoggingused by this model.
-
fillInAppianTypes
Description copied from class:AbstractProcessModelAdds 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:
fillInAppianTypesin interfaceAppianTypeHolder- Overrides:
fillInAppianTypesin classAbstractProcessModel- Parameters:
appianCache_- cache of Appian-typed objects.
-
updateFromDescriptor
-
toString
Generates a string representation of this model for debugging.- Overrides:
toStringin 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.
-