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 String
JPA attribute name for thegetMainProcess()
field.static final String
JPA attribute name for thegetMaxBackupCount()
field.static final String
JPA attribute name for thegetStates()
field.static final String
JPA attribute name for thegetVersionNumber()
field.static final String
JPA attribute name for theisWorkflowInvalid()
field.static final String
Database column name for thegetProject()
field.static final String
Database column name for thegetMaxBackupCount()
field.static final String
Database column name for thegetProject()
field.static final String
Database column name for thegetVersionNumber()
field.static final String
Database column name for theisWorkflowInvalid()
field.static final long
Version number of that can be used to indicate that no version existsFields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
Fields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION
Fields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_ID
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
Fields inherited from interface de.xima.fc.entities.interfaces.IProjektDependent
ATTR_PROJEKT
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
Fields 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 TypeMethodDescriptionvoid
addState
(WorkflowState state) Adds the given state to this version, and setsWorkflowState.getVersion()
to this version.Deprecated.getId()
int
Deprecated.UsegetProject()
.getUUID()
long
boolean
void
setBeschreibung
(String description) Deprecated.void
setDescription
(String description) void
setMainProcess
(WorkflowProcess mainProcess) void
setMaxBackupCount
(int maxBackupCount) void
setProject
(Projekt project) void
setProjekt
(Projekt projekt) Deprecated.UsesetProject(Projekt)
.void
setStates
(List<WorkflowState> states) void
void
setUUIDObject
(UUID uuid) void
setVersionNumber
(long versionNumber) void
setWorkflowInvalid
(boolean workflowInvalid) Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods 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:
getBeschreibung
in interfaceIDescriptionProviding
- Returns:
- An arbitrary, localized description for this workflow version.
-
getDescription
- Specified by:
getDescription
in interfaceIDescriptionProviding
- Returns:
- An arbitrary, localized description for this workflow version.
-
getId
- Specified by:
getId
in 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:
getProjekt
in 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:
getUUID
in 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:
getUUIDObject
in interfaceIUUIDEntity
-
getVersionNumber
public long getVersionNumber()- Specified by:
getVersionNumber
in 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:
true
if the configured workflow is invalid, i.e. had at least one error during validation; orfalse
otherwise.
-
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:
setProjekt
in 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:
setUUID
in 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
-true
if the configured workflow is invalid, i.e. had at least one error during validation; orfalse
otherwise.
-
getDescription()