T
- The type of the id/externalIdD
- The type of the definitionIdP
- The type of the providerIdpublic abstract class WorkObject<T extends WorkObjectId,D extends WorkObjectDefinitionId,P extends Id> extends DomainObject<T,D,P> implements HierarchicalEntity<WorkObjectId,T>
Modifier and Type | Class and Description |
---|---|
static class |
WorkObject.WorkObjectBuilder<T extends WorkObjectId,D extends WorkObjectDefinitionId,P extends Id,E extends WorkObject<T,D,P>,SELF extends WorkObject.WorkObjectBuilder<T,D,P,E,SELF>> |
protected static class |
WorkObject.WorkObjectData
Data container that holds the state of a work object.
|
DomainObject.DomainObjectBuilder<T extends EntityId,D extends EntityId,P extends Id,E extends DomainObject<T,D,P>,SELF extends DomainObject.DomainObjectBuilder<T,D,P,E,SELF>>, DomainObject.DomainObjectData<T extends EntityId,D extends EntityId,P extends Id>
Entity.EntityBuilder<T extends EntityId,P extends Id,E extends Entity<T,P>,SELF extends Entity.EntityBuilder<T,P,E,SELF>>, Entity.EntityData<T extends EntityId,P extends Id>
HierarchicalEntity.HierarchicalEntityBuilder<T extends HierarchicalEntityId,SELF extends HierarchicalEntity.HierarchicalEntityBuilder<T,SELF>>
Modifier and Type | Field and Description |
---|---|
protected WorkObject.WorkObjectData |
workObjectData |
domainObjectData, VARIABLE_DELETED_VALUE
entityData
Modifier | Constructor and Description |
---|---|
protected |
WorkObject(Entity.EntityData<T,P> entityData,
DomainObject.DomainObjectData<T,D,P> domainObjectData,
WorkObject.WorkObjectData workObjectData) |
Modifier and Type | Method and Description |
---|---|
protected void |
collectToStringAttributes(org.springframework.core.style.ToStringCreator toStringCreator) |
GroupId |
getAssignedGroupId()
Returns the current assigned group of the entity.
|
Date |
getAssignedGroupIdUpdateTime()
Returns the time the entity's assigned group was last updated.
|
UserId |
getAssigneeId()
Returns the current assignee of the entity.
|
Date |
getAssigneeIdUpdateTime()
Returns the time the entity's assignee was last updated.
|
Set<GroupId> |
getCandidateGroupIds()
Returns the candidate groups of the entity.
|
Set<UserId> |
getCandidateUserIds()
Returns the candidate users of the entity.
|
Date |
getDueTime()
Returns the time that the entity is due.
|
GroupId |
getInitialAssignedGroupId()
Returns the initial assigned group of the entity.
|
UserId |
getInitialAssigneeId()
Returns the initial assignee of the entity.
|
UserId |
getOwnerId()
Returns the owner of the entity.
|
WorkObjectId |
getParentId()
Returns the id of the parent entity.
|
<T extends WorkObjectId> |
getParentId(Class<T> expectedParentType)
Returns the first parent of the entity that is of the expected type when walking up the path from the immediate parent to the root.
|
List<? extends WorkObjectId> |
getPath()
Returns the path of the hierarchy to which the entity belongs.
|
GroupId |
getPreviousAssignedGroupId()
Returns the previous assigned group of the entity.
|
UserId |
getPreviousAssigneeId()
Returns the previous assignee of the entity.
|
Integer |
getPriority()
Returns the priority of the entity.
|
Date |
getResubmissionTime()
Returns the time the entity needs to be resubmitted.
|
WorkObjectId |
getRootId()
Implements backward compatibility for data with case as a workobject root.
|
State |
getState()
Returns the current
state of the entity. |
<T extends WorkObjectId> |
getTopMostParentId(Class<T> expectedParentType)
Returns the topmost parent of the entity that is of the expected type when walking up the path from the immediate parent to the root.
|
boolean |
hasParent()
Returns true if the entity has a parent.
|
boolean |
isActive()
Returns true if the entity is in state
ACTIVE . |
boolean |
isCompleted()
Returns true if the entity is in state
COMPLETED . |
boolean |
isInterrupted()
Returns true if the entity is in state
INTERRUPTED . |
String |
toString() |
getDefinitionId, getLocalVariable, getLocalVariables, getLocalVariables, getLocalVariablesMap, getLocalVariablesMap, getLocalVariableValue, getLocalVariableValue, getLocalVariableValue, getLocalVariableValue, getStateUpdateTime, getSubState, getSubStateUpdateTime, getVariable, getVariables, getVariables, getVariablesMap, getVariablesMap, getVariableValue, getVariableValue, getVariableValue, getVariableValue, hasLocalVariable, hasLocalVariable, hasVariable, hasVariable
getCreationTime, getDescription, getExternalId, getGlobalId, getId, getModificationCreatorId, getModificationUpdaterId, getModificationVersion, getName, getProviderId, getTenantId, getType, getUpdateTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId
protected final WorkObject.WorkObjectData workObjectData
protected WorkObject(Entity.EntityData<T,P> entityData, DomainObject.DomainObjectData<T,D,P> domainObjectData, WorkObject.WorkObjectData workObjectData)
public State getState()
state
of the entity.getState
in class DomainObject<T extends WorkObjectId,D extends WorkObjectDefinitionId,P extends Id>
WorkObjectState
public UserId getOwnerId()
public UserId getAssigneeId()
public UserId getInitialAssigneeId()
public UserId getPreviousAssigneeId()
public GroupId getAssignedGroupId()
public GroupId getInitialAssignedGroupId()
public GroupId getPreviousAssignedGroupId()
public Set<UserId> getCandidateUserIds()
public Set<GroupId> getCandidateGroupIds()
public Integer getPriority()
public Date getResubmissionTime()
public Date getDueTime()
public Date getAssigneeIdUpdateTime()
public Date getAssignedGroupIdUpdateTime()
public List<? extends WorkObjectId> getPath()
HierarchicalEntity
getPath
in interface HierarchicalEntity<WorkObjectId,T extends WorkObjectId>
public WorkObjectId getRootId()
getRootId
in interface HierarchicalEntity<WorkObjectId,T extends WorkObjectId>
public boolean hasParent()
HierarchicalEntity
hasParent
in interface HierarchicalEntity<WorkObjectId,T extends WorkObjectId>
public WorkObjectId getParentId()
HierarchicalEntity
getParentId
in interface HierarchicalEntity<WorkObjectId,T extends WorkObjectId>
public <T extends WorkObjectId> T getParentId(Class<T> expectedParentType)
HierarchicalEntity
getParentId
in interface HierarchicalEntity<WorkObjectId,T extends WorkObjectId>
T
- the type of the parent classexpectedParentType
- the expected parent typepublic <T extends WorkObjectId> T getTopMostParentId(Class<T> expectedParentType)
HierarchicalEntity
getTopMostParentId
in interface HierarchicalEntity<WorkObjectId,T extends WorkObjectId>
T
- the type of the parent classexpectedParentType
- the expected parent typepublic boolean isActive()
ACTIVE
.getState()
,
WorkObjectState.ACTIVE
public boolean isCompleted()
COMPLETED
.getState()
,
WorkObjectState.COMPLETED
public boolean isInterrupted()
INTERRUPTED
.getState()
,
WorkObjectState.INTERRUPTED
public String toString()
protected void collectToStringAttributes(org.springframework.core.style.ToStringCreator toStringCreator)
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.