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 booleanstatic final StringJPA attribute name for theisActive()field.static final StringJPA attribute name for thegetCustomParameters()field.static final StringJPA attribute name for thegetCustomParametersVersion()field.static final StringJPA attribute name for thegetDescription()field.static final StringJPA attribute name for theIElementSearchTermsProviding.getSearchTerms()field.static final StringJPA attribute name for thegetTask()field.static final StringJPA attribute name for thegetType()field.static final StringDatabase column name for theisActive()field.static final StringDatabase column name for thegetCustomParameters()field.static final StringDatabase column name for thegetCustomParametersVersion()field.static final StringDatabase column name for thegetDescription()field.static final StringDatabase column name for thegetName()field.static final StringDatabase column name for thegetTask()field.static final StringDatabase column name for thegetType()field.protected @NotNull @JsonObject Stringprotected @NotNull Stringprotected @Size(max=1020) Stringprotected @Size(max=100) Stringprotected @NotNull List<TSearchTerm> protected @NotNull WorkflowTaskprotected @NotEmpty Stringprotected @NotNull UUIDFields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface IDescriptionProviding
ATTR_BESCHREIBUNGFields 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 TypeMethodDescriptiongetName()getTask()getType()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.booleanisActive()voidsetActive(boolean active) voidsetCustomParameters(String customParameters) voidsetCustomParametersVersion(String customParametersVersion) voidsetDescription(String description) voidvoidsetSearchTerms(List<TSearchTerm> searchTerms) voidsetTask(WorkflowTask task) voidvoidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) 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 ICustomParametersProviding
getCustomParametersJsonMethods inherited from interface IElementKeyProviding
getKeyMethods inherited from interface IElementSearchTermsProviding
getSearchTermsMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
getId, isPersisted, setIdMethods inherited from interface IIdProviding
getIdMethods inherited from interface IWorkflowElementEntity
setCustomParametersJson
-
Field Details
-
ATTR_ACTIVE
-
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
-
ATTR_TYPE
-
COL_ACTIVE
-
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
-
COL_TASK
-
COL_TYPE
-
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:
getBeschreibungin interfaceIDescriptionProviding
-
getCustomParameters
- Specified by:
getCustomParametersin interfaceICustomParametersProviding- Returns:
- A JSON string holding the custom parameters.
-
getCustomParametersVersion
- Specified by:
getCustomParametersVersionin 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:
getDescriptionin interfaceIDescriptionProviding- Returns:
- A human-readable description for this object.
-
getName
- Specified by:
getNamein interfaceINameProviding- Returns:
- The name of this object.
-
getTask
- Returns:
- The task to which this workflow element belongs.
-
getType
- Specified by:
getTypein interfaceIWorkflowElementTypeProviding- Returns:
- The type of this workflow element. See
EWorkflowEventNameandEWorkflowNodeKindfor a list of built-in types.
-
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 for this workflow element. This ID must be unique at least among all elements of the
WorkflowProcessto which this element belongs.
-
isActive
public boolean isActive()- Specified by:
isActivein 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:
setCustomParametersin interfaceIWorkflowElementEntity- Parameters:
customParameters- The custom parameters JSON string that is then returned byICustomParametersProviding.getCustomParameters().
-
setCustomParametersVersion
- Specified by:
setCustomParametersVersionin 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. SeeEWorkflowEventNameandEWorkflowNodeKindfor a list of built-in types.
-
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 for this workflow element. This ID must be unique at least among all elements of theWorkflowProcessto which this element belongs.
-