Class WorkflowVersion
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.WorkflowVersion
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, IDescriptionProviding, ILockingVersionProviding, IProjektDependent, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, IVersionNumberProviding, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity
public class WorkflowVersion
extends AbstractLockableEntity
implements IProjektDependent, IDescriptionProviding, IUUIDEntity, IVersionNumberProviding
Represents the version of a project's workflow. Each project may have multiple versions.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringJPA attribute name for thegetMainProcess()field.static final StringJPA attribute name for thegetMaxBackupCount()field.static final StringJPA attribute name for thegetStates()field.static final StringJPA attribute name for thegetVersionNumber()field.static final StringJPA attribute name for theisWorkflowInvalid()field.static final StringDatabase column name for thegetProject()field.static final StringDatabase column name for thegetMaxBackupCount()field.static final StringDatabase column name for thegetProject()field.static final StringDatabase column name for thegetVersionNumber()field.static final StringDatabase column name for theisWorkflowInvalid()field.static final longVersion number of that can be used to indicate that no version existsFields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTIONFields 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 IProjektDependent
ATTR_PROJEKTFields 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 TypeMethodDescriptionvoidaddState(WorkflowState state) Adds the given state to this version, and setsWorkflowState.getVersion()to this version.Deprecated.getId()intDeprecated.UsegetProject().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.longbooleanvoidsetBeschreibung(String description) Deprecated.voidsetDescription(String description) voidsetMainProcess(WorkflowProcess mainProcess) voidsetMaxBackupCount(int maxBackupCount) voidsetProject(Projekt project) voidsetProjekt(Projekt projekt) Deprecated.UsesetProject(Projekt).voidsetStates(List<WorkflowState> states) voidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) voidsetVersionNumber(long versionNumber) voidsetWorkflowInvalid(boolean workflowInvalid) 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_MAIN_PROCESS
JPA attribute name for thegetMainProcess()field.- See Also:
-
ATTR_MAX_BACKUP_COUNT
JPA attribute name for thegetMaxBackupCount()field.- See Also:
-
ATTR_STATES
-
ATTR_VERSION_NUMBER
JPA attribute name for thegetVersionNumber()field.- See Also:
-
ATTR_VERSION_WORKFLOW_INVALID
JPA attribute name for theisWorkflowInvalid()field.- See Also:
-
COL_DESCRIPTION
Database column name for thegetProject()field.- See Also:
-
COL_MAX_BACKUP_COUNT
Database column name for thegetMaxBackupCount()field.- See Also:
-
COL_PROJECT
-
COL_VERSION_NUMBER
Database column name for thegetVersionNumber()field.- See Also:
-
COL_WORKFLOW_INVALID
Database column name for theisWorkflowInvalid()field.- See Also:
-
INVALID_VERSION_NUMBER
public static final long INVALID_VERSION_NUMBERVersion number of that can be used to indicate that no version exists- See Also:
-
-
Constructor Details
-
WorkflowVersion
public WorkflowVersion()
-
-
Method Details
-
addState
Adds the given state to this version, and setsWorkflowState.getVersion()to this version.- Parameters:
state- State to add to this version.
-
cloneBasics
- Returns:
- A new task instance with all fields that do not reference other entities copied from this instance.
-
getBeschreibung
Deprecated.UsegetDescription()- Specified by:
getBeschreibungin interfaceIDescriptionProviding- Returns:
- An arbitrary, localized description for this workflow version.
-
getDescription
- Specified by:
getDescriptionin interfaceIDescriptionProviding- Returns:
- An arbitrary, localized description for this workflow version.
-
getId
-
getMainProcess
- Returns:
- The main workflow process of the form. This is the process that is started when the form is submitted.
-
getMaxBackupCount
public int getMaxBackupCount()- Returns:
- The maximum number of automatic backups to create for this workflow version. An automatic backup is created when the workflow is saved in the designer.
-
getProject
- Returns:
- The project to which this workflow version belongs.
-
getProjekt
Deprecated.UsegetProject().- Specified by:
getProjektin interfaceIProjektDependent- Returns:
- The project to which this workflow version belongs.
-
getStates
- Returns:
- A list of all workflow states that belong to this version. Different workflow version may have different states.
-
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:
- The UUID of the entity.
-
getVersionNumber
public long getVersionNumber()- Specified by:
getVersionNumberin interfaceIVersionNumberProviding- Returns:
- The version number of this workflow version. This is used for sorting the available version of a project.
-
isWorkflowInvalid
public boolean isWorkflowInvalid()- Returns:
trueif the configured workflow is invalid, i.e. had at least one error during validation; orfalseotherwise.
-
setBeschreibung
Deprecated.- Parameters:
description- An arbitrary, localized description for this workflow version.
-
setDescription
- Parameters:
description- An arbitrary, localized description for this workflow version.
-
setMainProcess
- Parameters:
mainProcess- The main workflow process that is executed as the workflow of this version. There may be several sub processed that are not executed automatically, but only when requested by the main process.
-
setMaxBackupCount
public void setMaxBackupCount(int maxBackupCount) - Parameters:
maxBackupCount- The maximum number of automatic backups to create for this workflow version. An automatic backup is created when the workflow is saved in the designer.
-
setProject
- Parameters:
project- The project to which this workflow version belongs.
-
setProjekt
Deprecated.UsesetProject(Projekt).- Specified by:
setProjektin interfaceIProjektDependent- Parameters:
projekt- The project to which this workflow version belongs.
-
setStates
- Parameters:
states- A list of all workflow states that belong to this version. Different workflow version may have different states.
-
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- The unique UUID for this workflow version. This UUID is unique within thegetProject().
-
setVersionNumber
public void setVersionNumber(long versionNumber) - Parameters:
versionNumber- The version number of this workflow version. This is used for sorting the available version of a project.
-
setWorkflowInvalid
public void setWorkflowInvalid(boolean workflowInvalid) - Parameters:
workflowInvalid-trueif the configured workflow is invalid, i.e. had at least one error during validation; orfalseotherwise.
-
getDescription()