Class TaskWorkObject

java.lang.Object
com.flowable.workobject.engine.impl.IdentityLinkRelatedWorkObject
com.flowable.workobject.engine.impl.TaskWorkObject
All Implemented Interfaces:
WorkObject

public class TaskWorkObject
extends IdentityLinkRelatedWorkObject
Wraps Task into WorkObject
  • Constructor Details

    • TaskWorkObject

      public TaskWorkObject​(org.flowable.task.api.Task task)
  • Method Details

    • getType

      public java.lang.String getType()
      Description copied from interface: WorkObject
      Returns the work object type.
      Returns:
      the work object type
    • getId

      public java.lang.String getId()
      Description copied from interface: WorkObject
      Returns the ID of this work object.

      The ID is used to uniquely identify this particular work object instance.

      Returns:
      the work object ID
    • getProviderId

      public java.lang.String getProviderId()
      Description copied from interface: WorkObject
      Returns the provider ID of this work object.

      The ID is used to identify the provider responsible for managing the work object.

      Returns:
      the work object provider ID
    • getExternalId

      public java.lang.String getExternalId()
      Description copied from interface: WorkObject
      Returns the external ID of this work object.

      The external ID is used by the provider for managing the work object.

      Returns:
      the work object external ID
    • getDefinitionId

      public java.lang.String getDefinitionId()
      Description copied from interface: WorkObject
      Returns the definition ID of this work object.

      The definition ID references a definition that provides template information for the work object.

      Returns:
      the definition ID
    • getGlobalId

      public java.lang.String getGlobalId()
      Description copied from interface: WorkObject
      Returns the global ID of this work object.

      The global ID is used to identify this entity represented by this work object. Work objects in different tenants or even in different systems that represent the same entity will have the same global ID. Management of global IDs will vary depending on the application and the work object type.

      Returns:
      the global ID
    • getTenantId

      public java.lang.String getTenantId()
      Description copied from interface: WorkObject
      Returns the tenant ID for this work object.

      A single edoras one system can support multiple tenants, where each tenant is an isolated environment. Each tenant has a tenant ID, and a work object belongs to a specific tenant.

      Returns:
      the tenant ID
    • getName

      public java.lang.String getName()
      Description copied from interface: WorkObject
      Returns the work object name.
      Returns:
      the work object name
    • setName

      public void setName​(java.lang.String name)
    • getState

      public java.lang.String getState()
      Description copied from interface: WorkObject
      Returns the work object state.
      Returns:
      the work object state
    • getSubState

      public java.lang.String getSubState()
      Description copied from interface: WorkObject
      Returns the work object sub-state.
      Returns:
      the work object sub-state {}
    • getOwnerId

      public java.lang.String getOwnerId()
      Description copied from interface: WorkObject
      Returns the work object owner's user ID.
      Specified by:
      getOwnerId in interface WorkObject
      Overrides:
      getOwnerId in class IdentityLinkRelatedWorkObject
      Returns:
      the work object owner's user ID
    • setOwnerId

      public void setOwnerId​(java.lang.String ownerId)
    • getAssigneeId

      public java.lang.String getAssigneeId()
      Description copied from interface: WorkObject
      Returns the work object assignee's user ID.
      Specified by:
      getAssigneeId in interface WorkObject
      Overrides:
      getAssigneeId in class IdentityLinkRelatedWorkObject
      Returns:
      the work object assignee's user ID
    • setAssigneeId

      public void setAssigneeId​(java.lang.String assigneeId)
    • setAssignedGroupId

      public void setAssignedGroupId​(java.lang.String assignedGroupId)
    • getPriority

      public java.lang.Integer getPriority()
      Description copied from interface: WorkObject
      Returns the work object priority.
      Returns:
      the work object priority
    • setPriority

      public void setPriority​(java.lang.Integer priority)
    • getResubmissionTime

      public java.util.Date getResubmissionTime()
      Description copied from interface: WorkObject
      Returns the work object resubmission time.
      Returns:
      the work object resubmission time
    • getDueTime

      public java.util.Date getDueTime()
      Description copied from interface: WorkObject
      Returns the work object due time.
      Returns:
      the work object due time
    • setDueTime

      public void setDueTime​(java.util.Date dueDate)
    • getModificationCreatorId

      public java.lang.String getModificationCreatorId()
      Description copied from interface: WorkObject
      Returns the ID of the user who created the work object.
      Returns:
      the ID of the user who created the work object
    • getCreationTime

      public java.util.Date getCreationTime()
      Description copied from interface: WorkObject
      Returns the time the entity was created.
      Returns:
      the time the entity was created
    • getPath

      public java.util.List<java.lang.String> getPath()
      Description copied from interface: WorkObject
      Returns the work object hierarchy path (i.e. the sequence of parent IDs to the root work object).

      The entries in the path are ordered from the highest level (root) to the lowest level (current work object).

      Returns:
      the work object hierarchy path
    • getRootId

      public java.lang.String getRootId()
      Description copied from interface: WorkObject
      Returns the ID of the root work object (may be work object ID of this work object).
      Returns:
      the ID of the root work object (may be work object ID of this work object)
    • getStateUpdateTime

      public java.util.Date getStateUpdateTime()
      Description copied from interface: WorkObject
      Returns the time the work object state was last updated.
      Returns:
      the time the work object state was last updated
    • getSubStateUpdateTime

      public java.util.Date getSubStateUpdateTime()
      Description copied from interface: WorkObject
      Returns the time the work object sub state was last updated.
      Returns:
      the time the work object sub state was last updated
    • getInitialAssigneeId

      public java.lang.String getInitialAssigneeId()
      Description copied from interface: WorkObject
      Returns the initial assignee's user ID.
      Returns:
      the initial assignee's user ID
    • getPreviousAssigneeId

      public java.lang.String getPreviousAssigneeId()
      Description copied from interface: WorkObject
      Returns the previous assignee's user ID.
      Returns:
      the previous assignee's user ID
    • getAssigneeIdUpdateTime

      public java.util.Date getAssigneeIdUpdateTime()
      Description copied from interface: WorkObject
      Returns the time the entity's assignee ID was last updated.
      Returns:
      the time the entity's assignee ID was last updated
    • getInitialAssignedGroupId

      public java.lang.String getInitialAssignedGroupId()
      Description copied from interface: WorkObject
      Returns the initial assigned group ID.
      Returns:
      the initial assigned group ID
    • getPreviousAssignedGroupId

      public java.lang.String getPreviousAssignedGroupId()
      Description copied from interface: WorkObject
      Returns the previous assigned group ID.
      Returns:
      the previous assigned group ID
    • getAssignedGroupIdUpdateTime

      public java.util.Date getAssignedGroupIdUpdateTime()
      Description copied from interface: WorkObject
      Returns the time the entity's assigned group ID was last updated.
      Returns:
      the time the entity's assigned group ID was last updated
    • getModificationVersion

      public long getModificationVersion()
      Description copied from interface: WorkObject
      Returns the work object modification version.

      The modification version is changed each time the work object is modified.

      Returns:
      the work object modification version
    • getModificationUpdaterId

      public java.lang.String getModificationUpdaterId()
      Description copied from interface: WorkObject
      Returns the ID of the user who last modified the work object.
      Returns:
      the ID of the user who last modified the work object
    • getUpdateTime

      public java.util.Date getUpdateTime()
      Description copied from interface: WorkObject
      Returns the time the entity was last updated.
      Returns:
      the time the entity was last updated
    • getParentIdRef

      public java.lang.String getParentIdRef()
      Description copied from interface: WorkObject
      Returns parent id reference
      Returns:
      parent id reference
    • getParentId

      public java.lang.String getParentId()
      Description copied from interface: WorkObject
      Returns parent id
      Returns:
      parent id
    • getParentType

      public java.lang.String getParentType()
      Description copied from interface: WorkObject
      Returns parent type
      Returns:
      parent type
    • getLegacyVariables

      public java.util.List<LegacyVariable> getLegacyVariables()
      Returns:
      variables associated with the work object
    • isHasLegacyVariables

      public boolean isHasLegacyVariables()
      Description copied from interface: WorkObject
      Flag to specify whether workObject contains legacy variables
      Returns:
      true if there are legacy variables in the work object, false otherwise
    • getWorkObjectVariables

      public java.util.Map<java.lang.String,​java.lang.Object> getWorkObjectVariables()
      Description copied from interface: WorkObject
      Returns the WorkObject variables if requested in the WorkObjectQuery