Interface TaskQuery

All Superinterfaces:
org.flowable.common.engine.api.query.Query<TaskQuery,Task>, TaskInfoQuery<TaskQuery,Task>

public interface TaskQuery extends TaskInfoQuery<TaskQuery,Task>
Allows programmatic querying of Tasks;
Author:
Joram Barrez, Falko Menge, Tijs Rademakers
  • Method Details

    • taskDelegationState

      TaskQuery taskDelegationState(DelegationState delegationState)
      Only select tasks with the given DelegationState.
    • taskCandidateOrAssigned

      TaskQuery taskCandidateOrAssigned(String userIdForCandidateAndAssignee)
      Select tasks that has been claimed or assigned to user or waiting to claim by user (candidate user or groups). You can invoke TaskInfoQuery.taskCandidateGroupIn(Collection) to include tasks that can be claimed by a user in the given groups while set property dbIdentityUsed to false in process engine configuration or using custom session factory of GroupIdentityManager.
    • excludeSubtasks

      TaskQuery excludeSubtasks()
      Only select tasks that have no parent (i.e. do not select subtasks).
    • suspended

      TaskQuery suspended()
      Only selects tasks which are suspended, because its process instance was suspended.
    • active

      TaskQuery active()
      Only selects tasks which are active (ie. not suspended)