Package de.xima.fc.entities
Class AWorkflowElement<TElement extends IWorkflowElementEntity,TSearchTerm extends AWorkflowElementSearchTerm<TElement>>
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.AWorkflowElement<TElement,TSearchTerm>
- Type Parameters:
TElement
- Type of the workflow element entity.TSearchTerm
- Type of the workflow element search term entity.
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,IDescriptionProviding
,ILockingVersionProviding
,INameProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,IUUIDEntity
,IActiveFlagProviding
,ICustomParametersProviding
,IElementKeyProviding
,IElementSearchTermsProviding
,IIdProviding<Long>
,IUuidProviding
,IVersionedCustomParametersProviding
,IWorkflowElementEntity
,IWorkflowElementTypeProviding
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
WorkflowNode
,WorkflowTrigger
@MappedSuperclass
public abstract class AWorkflowElement<TElement extends IWorkflowElementEntity,TSearchTerm extends AWorkflowElementSearchTerm<TElement>>
extends AbstractLockableEntity
implements IUUIDEntity, IWorkflowElementEntity
Base class for workflow elements, i.e. nodes and triggers.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
static final String
JPA attribute name for theisActive()
field.static final String
JPA attribute name for thegetCustomParameters()
field.static final String
JPA attribute name for thegetCustomParametersVersion()
field.static final String
JPA attribute name for thegetDescription()
field.static final String
JPA attribute name for theIElementSearchTermsProviding.getSearchTerms()
field.static final String
JPA attribute name for thegetTask()
field.static final String
JPA attribute name for thegetType()
field.static final String
Database column name for theisActive()
field.static final String
Database column name for thegetCustomParameters()
field.static final String
Database column name for thegetCustomParametersVersion()
field.static final String
Database column name for thegetDescription()
field.static final String
Database column name for thegetName()
field.static final String
Database column name for thegetTask()
field.static final String
Database column name for thegetType()
field.protected @NotNull @JsonObject String
protected @NotNull String
protected @Size(max=1020) String
protected @Size(max=100) String
protected @NotNull List<TSearchTerm>
protected @NotNull WorkflowTask
protected @NotEmpty String
protected @NotNull UUID
Fields 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
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.INameProviding
ATTR_NAME
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 TypeMethodDescriptiongetName()
getTask()
getType()
getUuid()
getUUID()
boolean
isActive()
void
setActive
(boolean active) void
setCustomParameters
(String customParameters) void
setCustomParametersVersion
(String customParametersVersion) void
setDescription
(String description) void
void
setSearchTerms
(List<TSearchTerm> searchTerms) void
setTask
(WorkflowTask task) void
void
void
setUUIDObject
(UUID uuid) 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.fc.interfaces.workflow.ICustomParametersProviding
getCustomParametersJson
Methods inherited from interface de.xima.fc.interfaces.workflow.IElementKeyProviding
getKey
Methods inherited from interface de.xima.fc.interfaces.workflow.IElementSearchTermsProviding
getSearchTerms
Methods inherited from interface de.xima.cmn.dao.interfaces.IEntity
getId, isPersisted, setId
Methods inherited from interface de.xima.fc.interfaces.workflow.IIdProviding
getId
Methods inherited from interface de.xima.fc.interfaces.workflow.IWorkflowElementEntity
setCustomParametersJson
-
Field Details
-
ATTR_ACTIVE
JPA attribute name for theisActive()
field.- See Also:
-
ATTR_CUSTOM_PARAMETERS
JPA attribute name for thegetCustomParameters()
field.- See Also:
-
ATTR_CUSTOM_PARAMETERS_VERSION
JPA attribute name for thegetCustomParametersVersion()
field.- See Also:
-
ATTR_DESCRIPTION
JPA attribute name for thegetDescription()
field.- See Also:
-
ATTR_SEARCH_TERMS
JPA attribute name for theIElementSearchTermsProviding.getSearchTerms()
field.- See Also:
-
ATTR_TASK
JPA attribute name for thegetTask()
field.- See Also:
-
ATTR_TYPE
JPA attribute name for thegetType()
field.- See Also:
-
COL_ACTIVE
Database column name for theisActive()
field.- See Also:
-
COL_CUSTOM_PARAMETERS
Database column name for thegetCustomParameters()
field.- See Also:
-
COL_CUSTOM_PARAMETERS_VERSION
Database column name for thegetCustomParametersVersion()
field.- See Also:
-
COL_DESCRIPTION
Database column name for thegetDescription()
field.- See Also:
-
COL_NAME
Database column name for thegetName()
field.- See Also:
-
COL_TASK
Database column name for thegetTask()
field.- See Also:
-
COL_TYPE
Database column name for thegetType()
field.- See Also:
-
active
protected boolean active -
customParameters
-
customParametersVersion
-
description
-
name
-
searchTerms
@NotNull protected @NotNull List<TSearchTerm extends AWorkflowElementSearchTerm<TElement>> searchTerms -
task
-
type
-
uuid
-
-
Constructor Details
-
AWorkflowElement
public AWorkflowElement()
-
-
Method Details
-
cloneBasics
- Returns:
- A new workflow element instance with all fields that do not reference other entities copied from this instance.
-
getBeschreibung
- Specified by:
getBeschreibung
in interfaceIDescriptionProviding
-
getCustomParameters
- Specified by:
getCustomParameters
in interfaceICustomParametersProviding
- Returns:
- A JSON string holding the custom parameters.
-
getCustomParametersVersion
- Specified by:
getCustomParametersVersion
in interfaceIVersionedCustomParametersProviding
- Returns:
- The version of the custom parameters. You can, for example, store the version of the product that create the custom parameters here. Then you can use this to update the the parameters for later product versions.
-
getDescription
- Specified by:
getDescription
in interfaceIDescriptionProviding
- Returns:
- A human-readable description for this object.
-
getName
- Specified by:
getName
in interfaceINameProviding
- Returns:
- The name of this object.
-
getTask
- Returns:
- The task to which this workflow element belongs.
-
getType
- Specified by:
getType
in interfaceIWorkflowElementTypeProviding
- Returns:
- The type of this workflow element. See
EWorkflowEventName
andEWorkflowNodeKind
for a list of built-in types.
-
getUuid
- Specified by:
getUuid
in interfaceIUuidProviding
- Returns:
- The UUID that identifies this instance.
-
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
- Returns:
- A unique identifier for this workflow element. This ID must be unique at least among all elements of the
WorkflowProcess
to which this element belongs.
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceIActiveFlagProviding
- Returns:
- {code true} if this instance is considered active, enabled etc. The exact meaning depends on the type.
-
setActive
public void setActive(boolean active) - Parameters:
active
- Whether this workflow element is active. Inactive elements are not processed.
-
setCustomParameters
- Specified by:
setCustomParameters
in interfaceIWorkflowElementEntity
- Parameters:
customParameters
- The custom parameters JSON string that is then returned byICustomParametersProviding.getCustomParameters()
.
-
setCustomParametersVersion
- Specified by:
setCustomParametersVersion
in interfaceIVersionedCustomParametersProviding
- Parameters:
customParametersVersion
- The custom parameters version string that is then returned byIVersionedCustomParametersProviding.getCustomParametersVersion()
.
-
setDescription
- Parameters:
description
- The human-readable description of this workflow element.
-
setName
- Parameters:
name
- The name of this workflow element.
-
setSearchTerms
- Parameters:
searchTerms
- A list of search terms for filtering database queries.
-
setTask
- Parameters:
task
- The task to which this workflow element belongs.
-
setType
- Parameters:
type
- The type of this workflow element. SeeEWorkflowEventName
andEWorkflowNodeKind
for a list of built-in types.
-
setUUID
- Specified by:
setUUID
in interfaceIUUIDEntity
-
setUUIDObject
- Parameters:
uuid
- A unique identifier for this workflow element. This ID must be unique at least among all elements of theWorkflowProcess
to which this element belongs.
-