Class WorkflowTask
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.WorkflowTask
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, IDescriptionProviding, ILockingVersionProviding, INameProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, IUuidProviding, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity
public class WorkflowTask
extends AbstractLockableEntity
implements IUUIDEntity, IUuidProviding, INameProviding, IDescriptionProviding
A single workflow task with a program represented by the
getRootNode() that is executed when one of its
getTrigger() fires.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringJPA attribute name for thegetNodes()field.static final StringJPA attribute name for thegetProcess()field.static final StringJPA attribute name for thegetRootNode()field.static final StringJPA attribute name for thegetTrigger()field.static final StringDatabase column name for thegetDescription()field.static final StringDatabase column name for thegetName()field.static final StringDatabase column name for thegetProcess()field.static final StringThe index at which this entity appear inWorkflowProcess.getTasks().static final StringDatabase column name for thegetRootNode()field.Fields 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 INameProviding
ATTR_NAMEFields 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 TypeMethodDescriptionvoidaddNode(WorkflowNode node) Adds the given node to the list of workflow nodes, and setsAWorkflowElement.getTask()to this task.voidaddNodes(List<WorkflowNode> nodes) Adds the given nodes to the list of workflow nodes, and setsAWorkflowElement.getTask()to this task.Deprecated.getId()getName()getNodes()getUuid()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.voidreplaceTrigger(WorkflowTrigger trigger) Replaces the trigger of this task with the given trigger and setsAWorkflowElement.getTask()to this task.voidsetDescription(String description) voidvoidsetNodes(List<WorkflowNode> nodes) voidsetProcess(WorkflowProcess process) voidsetRootNode(WorkflowNode rootNode) voidsetTrigger(WorkflowTrigger trigger) voidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) toString()Methods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersionMethods 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_NODES
-
ATTR_PROCESS
-
ATTR_ROOT_NODE
-
ATTR_TRIGGER
-
COL_DESCRIPTION
Database column name for thegetDescription()field.- See Also:
-
COL_NAME
-
COL_PROCESS
-
COL_PROCESS_ORDER_INDEX
The index at which this entity appear inWorkflowProcess.getTasks().- See Also:
-
COL_ROOT_NODE
Database column name for thegetRootNode()field.- See Also:
-
-
Constructor Details
-
WorkflowTask
public WorkflowTask()
-
-
Method Details
-
addNode
Adds the given node to the list of workflow nodes, and setsAWorkflowElement.getTask()to this task.- Parameters:
node- Node to add.
-
addNodes
Adds the given nodes to the list of workflow nodes, and setsAWorkflowElement.getTask()to this task.- Parameters:
nodes- Nodes to add.
-
cloneBasics
- Returns:
- A new task instance with all fields that do not reference other entities copied from this instance.
-
getBeschreibung
Deprecated.- Specified by:
getBeschreibungin interfaceIDescriptionProviding
-
getDescription
- Specified by:
getDescriptionin interfaceIDescriptionProviding- Returns:
- A human-readable description for this object.
-
getId
-
getName
- Specified by:
getNamein interfaceINameProviding- Returns:
- The name of this object.
-
getNodes
- Returns:
- A list of all nodes contained in this workflow task, i.e. all nodes that can be reached, starting at the
given
getRootNode().
-
getProcess
- Returns:
- The process to which this tasks belong, see
WorkflowProcess.getTasks().
-
getRootNode
- Returns:
- The root node where execution begins when any of the
getTrigger()fires. In case this node isnull, execution must behave the same way as if were an empty node.
-
getTrigger
- Returns:
- A list of triggers that may start this task. Once any of these triggers fires, the corresponding workflow
logic defined by the
getRootNode()of this task is executed.
-
getUuid
- Specified by:
getUuidin interfaceIUuidProviding- Returns:
- The UUID that identifies this instance.
-
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 tasks that
belong to the same
WorkflowProcess.
-
replaceTrigger
Replaces the trigger of this task with the given trigger and setsAWorkflowElement.getTask()to this task.- Parameters:
trigger- The new trigger for this task.
-
setDescription
- Parameters:
description- The user-defined description of this task, also shown in the UI.
-
setName
- Parameters:
name- The user-defined name of this task, also shown in the UI.
-
setNodes
- Parameters:
nodes- A list of all nodes contained in this workflow task, i.e. all nodes that can be reached, starting at the givengetRootNode().
-
setProcess
- Parameters:
process- The process to which this tasks belong, seeWorkflowProcess.getTasks().
-
setRootNode
- Parameters:
rootNode- The root node where execution begins when any of thegetTrigger()fires. In case this node isnull, execution must behave the same way as if were an empty node.
-
setTrigger
- Parameters:
trigger- The trigger that may start this task. Once this trigger fires, the corresponding workflow logic defined by thegetRootNode()of this task is executed.
-
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.
-
toString
- Overrides:
toStringin classAbstractLockableEntity
-