Class WorkflowProcess
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.WorkflowProcess
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, ILockingVersionProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
A workflow process that defines which actions are taken when certain events occur during the life cycle of a form
record. A workflow process always belong to a
WorkflowVersion. Each project may have multiple versions of a
workflow process, and one active version.
A process consists of one or more workflow tasks, usually one task for each event (such as submitting the form, or changing the form record's state).
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringJPA attribute name for thegetTasks()field.static final StringJPA attribute name for thegetVersion()field.static final StringDatabase column name for thegetVersion()field.Fields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTask(WorkflowTask task) Adds the given task to this process and sets theWorkflowTask.getProcess()to this process.getId()getTasks()getUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetTasks(List<WorkflowTask> tasks) voidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) voidsetVersion(WorkflowVersion version) Methods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class AbstractEntity
asIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted, setId
-
Field Details
-
ATTR_TASKS
-
ATTR_VERSION
-
COL_VERSION
-
-
Constructor Details
-
WorkflowProcess
public WorkflowProcess()
-
-
Method Details
-
addTask
Adds the given task to this process and sets theWorkflowTask.getProcess()to this process.- Parameters:
task- The task to add.
-
getId
-
getTasks
- Returns:
- A list of tasks that indicate which actions are executed when certain events occur during the life cycle of a form record.
-
getUUID
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
getUUIDObject
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- A unique identifier of this workflow task. This ID must be unique at least among all other processes that
belong to the same
WorkflowVersion.
-
getVersion
- Returns:
- The version to which this workflow process belongs, see
WorkflowVersion.getMainProcess().
-
setTasks
- Parameters:
tasks- A list of tasks that indicate which actions are executed when certain events occur during the life cycle of a form record.
-
setUUID
Description copied from interface:IUUIDEntitySets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- The UUID of the entity.
-
setUUIDObject
- Parameters:
uuid- A unique identifier of this workflow task. This ID must be unique at least among all other tasks that belong to the sameWorkflowProcess.
-
setVersion
- Parameters:
version- The version to which this workflow process belongs.
-
cloneBasics
- Returns:
- A new process instance with all fields that do not reference other entities copied from this instance.
-