Package de.xima.fc.entities
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 de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, idFields inherited from interface de.xima.fc.entities.interfaces.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 de.xima.fc.entities.interfaces.IProjektDependent
ATTR_PROJEKTFields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_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()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) voidvoidsetUUIDObject(UUID uuid) voidsetVersionNumber(long versionNumber) voidsetWorkflowInvalid(boolean workflowInvalid) Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.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
JPA attribute name for thegetStates()field.- See Also:
-
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
Database column name for thegetProject()field.- See Also:
-
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
- Specified by:
getIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
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
- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a
context, e.g.
Mandant,Projekt, ...
-
getUUIDObject
- Specified by:
getUUIDObjectin interfaceIUUIDEntity
-
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
- Specified by:
setUUIDin interfaceIUUIDEntity
-
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()