Class ExecutionQueryImpl

java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<T,U>
org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
org.flowable.engine.impl.ExecutionQueryImpl
All Implemented Interfaces:
Serializable, org.flowable.common.engine.api.query.CacheAwareQuery<org.flowable.engine.impl.persistence.entity.ExecutionEntity>, org.flowable.common.engine.api.query.Query<ExecutionQuery,Execution>, org.flowable.common.engine.impl.interceptor.Command<Object>, ExecutionQuery

public class ExecutionQueryImpl extends org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution> implements ExecutionQuery, org.flowable.common.engine.api.query.CacheAwareQuery<org.flowable.engine.impl.persistence.entity.ExecutionEntity>
Author:
Joram Barrez, Frederik Heremans, Daniel Meyer
See Also:
  • Field Details

    • processEngineConfiguration

      protected org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration
    • processDefinitionId

      protected String processDefinitionId
    • processDefinitionKey

      protected String processDefinitionKey
    • processDefinitionKeyLike

      protected String processDefinitionKeyLike
    • processDefinitionKeyLikeIgnoreCase

      protected String processDefinitionKeyLikeIgnoreCase
    • processDefinitionCategory

      protected String processDefinitionCategory
    • processDefinitionCategoryLike

      protected String processDefinitionCategoryLike
    • processDefinitionCategoryLikeIgnoreCase

      protected String processDefinitionCategoryLikeIgnoreCase
    • processDefinitionName

      protected String processDefinitionName
    • processDefinitionNameLike

      protected String processDefinitionNameLike
    • processDefinitionNameLikeIgnoreCase

      protected String processDefinitionNameLikeIgnoreCase
    • processDefinitionVersion

      protected Integer processDefinitionVersion
    • processDefinitionEngineVersion

      protected String processDefinitionEngineVersion
    • activityId

      protected String activityId
    • executionId

      protected String executionId
    • parentId

      protected String parentId
    • onlyChildExecutions

      protected boolean onlyChildExecutions
    • onlySubProcessExecutions

      protected boolean onlySubProcessExecutions
    • onlyProcessInstanceExecutions

      protected boolean onlyProcessInstanceExecutions
    • processInstanceId

      protected String processInstanceId
    • rootProcessInstanceId

      protected String rootProcessInstanceId
    • eventSubscriptions

      protected List<org.flowable.eventsubscription.service.impl.EventSubscriptionQueryValue> eventSubscriptions
    • tenantId

      protected String tenantId
    • tenantIdLike

      protected String tenantIdLike
    • tenantIdLikeIgnoreCase

      protected String tenantIdLikeIgnoreCase
    • withoutTenantId

      protected boolean withoutTenantId
    • locale

      protected String locale
    • withLocalizationFallback

      protected boolean withLocalizationFallback
    • startedBefore

      protected Date startedBefore
    • startedAfter

      protected Date startedAfter
    • startedBy

      protected String startedBy
    • superProcessInstanceId

      protected String superProcessInstanceId
    • subProcessInstanceId

      protected String subProcessInstanceId
    • excludeSubprocesses

      protected boolean excludeSubprocesses
    • suspensionState

      protected org.flowable.common.engine.impl.db.SuspensionState suspensionState
    • businessKey

      protected String businessKey
    • businessKeyLike

      protected String businessKeyLike
    • businessKeyLikeIgnoreCase

      protected String businessKeyLikeIgnoreCase
    • includeChildExecutionsWithBusinessKeyQuery

      protected boolean includeChildExecutionsWithBusinessKeyQuery
    • isActive

      protected boolean isActive
    • involvedUser

      protected String involvedUser
    • involvedGroups

      protected Set<String> involvedGroups
    • processDefinitionKeys

      protected Set<String> processDefinitionKeys
    • processDefinitionIds

      protected Set<String> processDefinitionIds
    • name

      protected String name
    • nameLike

      protected String nameLike
    • nameLikeIgnoreCase

      protected String nameLikeIgnoreCase
    • deploymentId

      protected String deploymentId
    • deploymentIds

      protected List<String> deploymentIds
    • activeActivityId

      protected String activeActivityId
    • activeActivityIds

      protected Set<String> activeActivityIds
    • callbackId

      protected String callbackId
    • callbackType

      protected String callbackType
    • referenceId

      protected String referenceId
    • referenceType

      protected String referenceType
    • orQueryObjects

      protected List<ExecutionQueryImpl> orQueryObjects
    • currentOrQueryObject

      protected ExecutionQueryImpl currentOrQueryObject
    • inOrStatement

      protected boolean inOrStatement
  • Constructor Details

    • ExecutionQueryImpl

      public ExecutionQueryImpl()
    • ExecutionQueryImpl

      public ExecutionQueryImpl(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
    • ExecutionQueryImpl

      public ExecutionQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor, org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl processEngineConfiguration)
  • Method Details

    • isProcessInstancesOnly

      public boolean isProcessInstancesOnly()
    • processDefinitionId

      public ExecutionQueryImpl processDefinitionId(String processDefinitionId)
      Description copied from interface: ExecutionQuery
      Only select executions which have the given process definition id.
      Specified by:
      processDefinitionId in interface ExecutionQuery
    • processDefinitionKey

      public ExecutionQueryImpl processDefinitionKey(String processDefinitionKey)
      Description copied from interface: ExecutionQuery
      Only select executions which have the given process definition key.
      Specified by:
      processDefinitionKey in interface ExecutionQuery
    • processDefinitionKeyLike

      public ExecutionQueryImpl processDefinitionKeyLike(String processDefinitionKeyLike)
      Description copied from interface: ExecutionQuery
      Only select executions which have a process definition key like the given value.
      Specified by:
      processDefinitionKeyLike in interface ExecutionQuery
    • processDefinitionKeyLikeIgnoreCase

      public ExecutionQueryImpl processDefinitionKeyLikeIgnoreCase(String processDefinitionKeyLikeIgnoreCase)
      Description copied from interface: ExecutionQuery
      Only select executions which have a process definition key like the given value, ignoring upper/lower case.
      Specified by:
      processDefinitionKeyLikeIgnoreCase in interface ExecutionQuery
    • processDefinitionCategory

      public ExecutionQuery processDefinitionCategory(String processDefinitionCategory)
      Description copied from interface: ExecutionQuery
      Only select executions which have the given process definition category.
      Specified by:
      processDefinitionCategory in interface ExecutionQuery
    • processDefinitionCategoryLike

      public ExecutionQuery processDefinitionCategoryLike(String processDefinitionCategoryLike)
      Description copied from interface: ExecutionQuery
      Only select executions which have a process definition category like the given value.
      Specified by:
      processDefinitionCategoryLike in interface ExecutionQuery
    • processDefinitionCategoryLikeIgnoreCase

      public ExecutionQuery processDefinitionCategoryLikeIgnoreCase(String processDefinitionCategoryLikeIgnoreCase)
      Description copied from interface: ExecutionQuery
      Only select executions which have a process definition category like the given value, ignoring upper/lower case.
      Specified by:
      processDefinitionCategoryLikeIgnoreCase in interface ExecutionQuery
    • processDefinitionName

      public ExecutionQuery processDefinitionName(String processDefinitionName)
      Description copied from interface: ExecutionQuery
      Only select executions which have the given process definition name.
      Specified by:
      processDefinitionName in interface ExecutionQuery
    • processDefinitionNameLike

      public ExecutionQuery processDefinitionNameLike(String processDefinitionNameLike)
      Description copied from interface: ExecutionQuery
      Only select executions which have a process definition name like the given value.
      Specified by:
      processDefinitionNameLike in interface ExecutionQuery
    • processDefinitionNameLikeIgnoreCase

      public ExecutionQuery processDefinitionNameLikeIgnoreCase(String processDefinitionNameLikeIgnoreCase)
      Description copied from interface: ExecutionQuery
      Only select executions which have a process definition name like the given value, ignoring upper/lower case.
      Specified by:
      processDefinitionNameLikeIgnoreCase in interface ExecutionQuery
    • processDefinitionVersion

      public ExecutionQuery processDefinitionVersion(Integer processDefinitionVersion)
      Description copied from interface: ExecutionQuery
      Only select executions which have the given process definition version. Particularly useful when used in combination with ExecutionQuery.processDefinitionKey(String)
      Specified by:
      processDefinitionVersion in interface ExecutionQuery
    • processDefinitionEngineVersion

      public ExecutionQuery processDefinitionEngineVersion(String processDefinitionEngineVersion)
      Description copied from interface: ExecutionQuery
      Only select executions which have the given process definition engine version.
      Specified by:
      processDefinitionEngineVersion in interface ExecutionQuery
    • processInstanceId

      public ExecutionQueryImpl processInstanceId(String processInstanceId)
      Description copied from interface: ExecutionQuery
      Only select executions which have the given process instance id.
      Specified by:
      processInstanceId in interface ExecutionQuery
    • rootProcessInstanceId

      public ExecutionQueryImpl rootProcessInstanceId(String rootProcessInstanceId)
      Description copied from interface: ExecutionQuery
      Only select executions which have the given root process instance id.
      Specified by:
      rootProcessInstanceId in interface ExecutionQuery
    • processInstanceBusinessKey

      public ExecutionQuery processInstanceBusinessKey(String businessKey)
      Description copied from interface: ExecutionQuery
      Only executions with the given business key. Note that only process instances have a business key and as such, child executions will NOT be returned. If you want to return child executions of the process instance with the given business key too, use the ExecutionQuery.processInstanceBusinessKey(String, boolean) method with a boolean value of true instead.
      Specified by:
      processInstanceBusinessKey in interface ExecutionQuery
    • processInstanceBusinessKey

      public ExecutionQuery processInstanceBusinessKey(String processInstanceBusinessKey, boolean includeChildExecutions)
      Description copied from interface: ExecutionQuery
      Only executions with the given business key. Similar to ExecutionQuery.processInstanceBusinessKey(String), but allows to choose whether child executions are returned or not.
      Specified by:
      processInstanceBusinessKey in interface ExecutionQuery
    • processInstanceBusinessKeyLike

      public ExecutionQuery processInstanceBusinessKeyLike(String businessKeyLike)
      Description copied from interface: ExecutionQuery
      Only executions that have a business key like the given value. Note that only process instances have a business key and as such, child executions will NOT be returned. If you want to return child executions of the process instance with the given business key too, use the ExecutionQuery.processInstanceBusinessKeyLike(String, boolean) method with a boolean value of true instead.
      Specified by:
      processInstanceBusinessKeyLike in interface ExecutionQuery
    • processInstanceBusinessKeyLike

      public ExecutionQuery processInstanceBusinessKeyLike(String processInstanceBusinessKeyLike, boolean includeChildExecutions)
      Description copied from interface: ExecutionQuery
      Only executions that have a business key like the given value. Similar to ExecutionQuery.processInstanceBusinessKeyLike(String), but allows to choose whether child executions are returned or not.
      Specified by:
      processInstanceBusinessKeyLike in interface ExecutionQuery
    • processInstanceBusinessKeyLikeIgnoreCase

      public ExecutionQuery processInstanceBusinessKeyLikeIgnoreCase(String businessKeyLikeIgnoreCase)
      Description copied from interface: ExecutionQuery
      Only executions that have a business key like the given value, ignoring upper/lower case. Note that only process instances have a business key and as such, child executions will NOT be returned. If you want to return child executions of the process instance with the given business key too, use the ExecutionQuery.processInstanceBusinessKeyLikeIgnoreCase(String, boolean) method with a boolean value of true instead.
      Specified by:
      processInstanceBusinessKeyLikeIgnoreCase in interface ExecutionQuery
    • processInstanceBusinessKeyLikeIgnoreCase

      public ExecutionQuery processInstanceBusinessKeyLikeIgnoreCase(String processInstanceBusinessKeyLikeIgnoreCase, boolean includeChildExecutions)
      Description copied from interface: ExecutionQuery
      Only executions that have a business key like the given value, ignoring upper/lower case. Similar to ExecutionQuery.processInstanceBusinessKeyLikeIgnoreCase(String), but allows to choose whether child executions are returned or not.
      Specified by:
      processInstanceBusinessKeyLikeIgnoreCase in interface ExecutionQuery
    • processDefinitionKeys

      public ExecutionQuery processDefinitionKeys(Set<String> processDefinitionKeys)
      Description copied from interface: ExecutionQuery
      Only select executions which have process definitions with the given keys.
      Specified by:
      processDefinitionKeys in interface ExecutionQuery
    • executionId

      public ExecutionQueryImpl executionId(String executionId)
      Description copied from interface: ExecutionQuery
      Only select executions with the given id.
      Specified by:
      executionId in interface ExecutionQuery
    • activityId

      public ExecutionQueryImpl activityId(String activityId)
      Description copied from interface: ExecutionQuery
      Only select executions which contain an activity with the given id.
      Specified by:
      activityId in interface ExecutionQuery
    • parentId

      public ExecutionQueryImpl parentId(String parentId)
      Description copied from interface: ExecutionQuery
      Only select executions which are a direct child-execution of the execution with the given id.
      Specified by:
      parentId in interface ExecutionQuery
    • onlyChildExecutions

      public ExecutionQuery onlyChildExecutions()
      Description copied from interface: ExecutionQuery
      Only selects executions that have a parent id set, ie non-processinstance executions.
      Specified by:
      onlyChildExecutions in interface ExecutionQuery
    • onlySubProcessExecutions

      public ExecutionQuery onlySubProcessExecutions()
      Description copied from interface: ExecutionQuery
      Only selects executions that are a subprocess.
      Specified by:
      onlySubProcessExecutions in interface ExecutionQuery
    • onlyProcessInstanceExecutions

      public ExecutionQuery onlyProcessInstanceExecutions()
      Description copied from interface: ExecutionQuery
      Only selects executions that have no parent id set, ie process instance executions
      Specified by:
      onlyProcessInstanceExecutions in interface ExecutionQuery
    • executionTenantId

      public ExecutionQueryImpl executionTenantId(String tenantId)
      Description copied from interface: ExecutionQuery
      Only select process instances that have the given tenant id.
      Specified by:
      executionTenantId in interface ExecutionQuery
    • executionTenantIdLike

      public ExecutionQueryImpl executionTenantIdLike(String tenantIdLike)
      Description copied from interface: ExecutionQuery
      Only select process instances with a tenant id like the given one.
      Specified by:
      executionTenantIdLike in interface ExecutionQuery
    • executionTenantIdLikeIgnoreCase

      public ExecutionQueryImpl executionTenantIdLikeIgnoreCase(String tenantIdLikeIgnoreCase)
      Description copied from interface: ExecutionQuery
      Only select process instances with a tenant id like the given one, ignoring upper/lower case.
      Specified by:
      executionTenantIdLikeIgnoreCase in interface ExecutionQuery
    • executionWithoutTenantId

      public ExecutionQueryImpl executionWithoutTenantId()
      Description copied from interface: ExecutionQuery
      Only select process instances that do not have a tenant id.
      Specified by:
      executionWithoutTenantId in interface ExecutionQuery
    • executionReferenceId

      public ExecutionQuery executionReferenceId(String referenceId)
      Description copied from interface: ExecutionQuery
      Only select executions with the given reference id.
      Specified by:
      executionReferenceId in interface ExecutionQuery
    • executionReferenceType

      public ExecutionQuery executionReferenceType(String referenceType)
      Description copied from interface: ExecutionQuery
      Only select executions with the given reference type.
      Specified by:
      executionReferenceType in interface ExecutionQuery
    • signalEventSubscription

      public ExecutionQuery signalEventSubscription(String signalName)
    • signalEventSubscriptionName

      public ExecutionQuery signalEventSubscriptionName(String signalName)
      Description copied from interface: ExecutionQuery
      Only select executions which have a signal event subscription for the given signal name. (The signalName is specified using the 'name' attribute of the signal element in the BPMN 2.0 XML.)
      Specified by:
      signalEventSubscriptionName in interface ExecutionQuery
      Parameters:
      signalName - the name of the signal the execution has subscribed to
    • messageEventSubscriptionName

      public ExecutionQuery messageEventSubscriptionName(String messageName)
      Description copied from interface: ExecutionQuery
      Only select executions which have a message event subscription for the given messageName. (The messageName is specified using the 'name' attribute of the message element in the BPMN 2.0 XML.)
      Specified by:
      messageEventSubscriptionName in interface ExecutionQuery
      Parameters:
      messageName - the name of the message the execution has subscribed to
    • eventSubscription

      public ExecutionQuery eventSubscription(String eventType, String eventName)
    • processVariableValueEquals

      public ExecutionQuery processVariableValueEquals(String variableName, Object variableValue)
      Description copied from interface: ExecutionQuery
      Only select executions which are part of a process that have a variable with the given name set to the given value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      processVariableValueEquals in interface ExecutionQuery
    • processVariableValueEquals

      public ExecutionQuery processVariableValueEquals(Object variableValue)
      Description copied from interface: ExecutionQuery
      Only select executions which are part of a process that have at least one variable with the given value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      processVariableValueEquals in interface ExecutionQuery
    • processVariableValueNotEquals

      public ExecutionQuery processVariableValueNotEquals(String variableName, Object variableValue)
      Description copied from interface: ExecutionQuery
      Only select executions which are part of a process that have a variable with the given name, but with a different value than the passed value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      processVariableValueNotEquals in interface ExecutionQuery
    • processVariableValueEqualsIgnoreCase

      public ExecutionQuery processVariableValueEqualsIgnoreCase(String name, String value)
      Description copied from interface: ExecutionQuery
      Only select executions which are part of a process that have a local string variable with the given value, case insensitive.

      This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

      Specified by:
      processVariableValueEqualsIgnoreCase in interface ExecutionQuery
      Parameters:
      name - name of the variable, cannot be null.
      value - value of the variable, cannot be null.
    • processVariableValueNotEqualsIgnoreCase

      public ExecutionQuery processVariableValueNotEqualsIgnoreCase(String name, String value)
      Description copied from interface: ExecutionQuery
      Only select executions which are part of a process that have a local string variable which is not the given value, case insensitive.

      This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

      Specified by:
      processVariableValueNotEqualsIgnoreCase in interface ExecutionQuery
      Parameters:
      name - name of the variable, cannot be null.
      value - value of the variable, cannot be null.
    • processVariableValueLike

      public ExecutionQuery processVariableValueLike(String name, String value)
      Description copied from interface: ExecutionQuery
      Only select executions which are part of a process that have at least one variable like the given value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      processVariableValueLike in interface ExecutionQuery
    • processVariableValueLikeIgnoreCase

      public ExecutionQuery processVariableValueLikeIgnoreCase(String name, String value)
      Description copied from interface: ExecutionQuery
      Only select executions which are part of a process that have at least one variable like the given value (case insensitive). Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      processVariableValueLikeIgnoreCase in interface ExecutionQuery
    • processVariableValueGreaterThan

      public ExecutionQuery processVariableValueGreaterThan(String name, Object value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a process instance variable value greater than the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      processVariableValueGreaterThan in interface ExecutionQuery
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • processVariableValueGreaterThanOrEqual

      public ExecutionQuery processVariableValueGreaterThanOrEqual(String name, Object value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a process instance variable value greater than or equal to the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      processVariableValueGreaterThanOrEqual in interface ExecutionQuery
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • processVariableValueLessThan

      public ExecutionQuery processVariableValueLessThan(String name, Object value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a process instance variable value less than the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      processVariableValueLessThan in interface ExecutionQuery
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • processVariableValueLessThanOrEqual

      public ExecutionQuery processVariableValueLessThanOrEqual(String name, Object value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a process instance variable value less than or equal to the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      processVariableValueLessThanOrEqual in interface ExecutionQuery
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • processVariableExists

      public ExecutionQuery processVariableExists(String name)
      Description copied from interface: ExecutionQuery
      Only select executions which are part of a process that have a variable with the given name.
      Specified by:
      processVariableExists in interface ExecutionQuery
      Parameters:
      name - cannot be null.
    • processVariableNotExists

      public ExecutionQuery processVariableNotExists(String name)
      Description copied from interface: ExecutionQuery
      Only select executions which are part of a process that don't have a variable with the given name.
      Specified by:
      processVariableNotExists in interface ExecutionQuery
      Parameters:
      name - cannot be null.
    • variableValueEquals

      public ExecutionQuery variableValueEquals(String variableName, Object variableValue)
      Description copied from interface: ExecutionQuery
      Only select executions which have a local variable with the given value. The type of variable is determined based on the value, using types configured in ProcessEngineConfigurationImpl.getVariableTypes(). Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      variableValueEquals in interface ExecutionQuery
      Overrides:
      variableValueEquals in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      variableName - name of the variable, cannot be null.
    • variableValueEquals

      public ExecutionQuery variableValueEquals(Object variableValue)
      Description copied from interface: ExecutionQuery
      Only select executions which have at least one local variable with the given value. The type of variable is determined based on the value, using types configured in ProcessEngineConfigurationImpl.getVariableTypes(). Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      variableValueEquals in interface ExecutionQuery
      Overrides:
      variableValueEquals in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
    • variableValueNotEquals

      public ExecutionQuery variableValueNotEquals(String variableName, Object variableValue)
      Description copied from interface: ExecutionQuery
      Only select executions which have a local variable with the given name, but with a different value than the passed value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      variableValueNotEquals in interface ExecutionQuery
      Overrides:
      variableValueNotEquals in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      variableName - name of the variable, cannot be null.
    • variableValueEqualsIgnoreCase

      public ExecutionQuery variableValueEqualsIgnoreCase(String name, String value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a local string variable with the given value, case insensitive.

      This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

      Specified by:
      variableValueEqualsIgnoreCase in interface ExecutionQuery
      Overrides:
      variableValueEqualsIgnoreCase in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      name - name of the variable, cannot be null.
      value - value of the variable, cannot be null.
    • variableValueNotEqualsIgnoreCase

      public ExecutionQuery variableValueNotEqualsIgnoreCase(String name, String value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a local string variable which is not the given value, case insensitive.

      This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).

      Specified by:
      variableValueNotEqualsIgnoreCase in interface ExecutionQuery
      Overrides:
      variableValueNotEqualsIgnoreCase in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      name - name of the variable, cannot be null.
      value - value of the variable, cannot be null.
    • variableValueLike

      public ExecutionQuery variableValueLike(String name, String value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a local variable value like the given value. This be used on string variables only.
      Specified by:
      variableValueLike in interface ExecutionQuery
      Overrides:
      variableValueLike in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
    • variableValueLikeIgnoreCase

      public ExecutionQuery variableValueLikeIgnoreCase(String name, String value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a local variable value like the given value (case insensitive). This be used on string variables only.
      Specified by:
      variableValueLikeIgnoreCase in interface ExecutionQuery
      Overrides:
      variableValueLikeIgnoreCase in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
    • variableValueGreaterThan

      public ExecutionQuery variableValueGreaterThan(String name, Object value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a local variable value greater than the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      variableValueGreaterThan in interface ExecutionQuery
      Overrides:
      variableValueGreaterThan in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • variableValueGreaterThanOrEqual

      public ExecutionQuery variableValueGreaterThanOrEqual(String name, Object value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a local variable value greater than or equal to the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      variableValueGreaterThanOrEqual in interface ExecutionQuery
      Overrides:
      variableValueGreaterThanOrEqual in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • variableValueLessThan

      public ExecutionQuery variableValueLessThan(String name, Object value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a local variable value less than the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      variableValueLessThan in interface ExecutionQuery
      Overrides:
      variableValueLessThan in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • variableValueLessThanOrEqual

      public ExecutionQuery variableValueLessThanOrEqual(String name, Object value)
      Description copied from interface: ExecutionQuery
      Only select executions which have a local variable value less than or equal to the passed value. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      Specified by:
      variableValueLessThanOrEqual in interface ExecutionQuery
      Overrides:
      variableValueLessThanOrEqual in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      name - variable name, cannot be null.
      value - variable value, cannot be null.
    • variableExists

      public ExecutionQuery variableExists(String name)
      Description copied from interface: ExecutionQuery
      Only select executions which have a local variable with the given name.
      Specified by:
      variableExists in interface ExecutionQuery
      Overrides:
      variableExists in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      name - cannot be null.
    • variableNotExists

      public ExecutionQuery variableNotExists(String name)
      Description copied from interface: ExecutionQuery
      Only select executions which does not have a local variable with the given name.
      Specified by:
      variableNotExists in interface ExecutionQuery
      Overrides:
      variableNotExists in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
      Parameters:
      name - cannot be null.
    • locale

      public ExecutionQuery locale(String locale)
      Description copied from interface: ExecutionQuery
      Localize execution name and description to specified locale.
      Specified by:
      locale in interface ExecutionQuery
    • withLocalizationFallback

      public ExecutionQuery withLocalizationFallback()
      Description copied from interface: ExecutionQuery
      Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.
      Specified by:
      withLocalizationFallback in interface ExecutionQuery
    • startedBefore

      public ExecutionQuery startedBefore(Date beforeTime)
      Description copied from interface: ExecutionQuery
      Only select executions that were started before the given start time.
      Specified by:
      startedBefore in interface ExecutionQuery
      Parameters:
      beforeTime - executions started before this time will be returned (cannot be null)
    • startedAfter

      public ExecutionQuery startedAfter(Date afterTime)
      Description copied from interface: ExecutionQuery
      Only select executions that were started after the given start time.
      Specified by:
      startedAfter in interface ExecutionQuery
      Parameters:
      afterTime - executions started after this time will be returned (cannot be null)
    • startedBy

      public ExecutionQuery startedBy(String userId)
      Description copied from interface: ExecutionQuery
      Only select executions that were started after by the given user id.
      Specified by:
      startedBy in interface ExecutionQuery
      Parameters:
      userId - the user id of the authenticated user that started the execution (cannot be null)
    • or

      public ExecutionQuery or()
      Description copied from interface: ExecutionQuery
      Begin an OR statement. Make sure you invoke the endOr method at the end of your OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.
      Specified by:
      or in interface ExecutionQuery
    • endOr

      public ExecutionQuery endOr()
      Description copied from interface: ExecutionQuery
      End an OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.
      Specified by:
      endOr in interface ExecutionQuery
    • orderByProcessInstanceId

      public ExecutionQueryImpl orderByProcessInstanceId()
      Description copied from interface: ExecutionQuery
      Order by id (needs to be followed by Query.asc() or Query.desc()).
      Specified by:
      orderByProcessInstanceId in interface ExecutionQuery
    • orderByProcessDefinitionId

      public ExecutionQueryImpl orderByProcessDefinitionId()
      Description copied from interface: ExecutionQuery
      Order by process definition id (needs to be followed by Query.asc() or Query.desc()).
      Specified by:
      orderByProcessDefinitionId in interface ExecutionQuery
    • orderByProcessDefinitionKey

      public ExecutionQueryImpl orderByProcessDefinitionKey()
      Description copied from interface: ExecutionQuery
      Order by process definition key (needs to be followed by Query.asc() or Query.desc()).
      Specified by:
      orderByProcessDefinitionKey in interface ExecutionQuery
    • orderByTenantId

      public ExecutionQueryImpl orderByTenantId()
      Description copied from interface: ExecutionQuery
      Order by tenant id (needs to be followed by Query.asc() or Query.desc()).
      Specified by:
      orderByTenantId in interface ExecutionQuery
    • executeCount

      public long executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Specified by:
      executeCount in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
    • executeList

      public List<Execution> executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Specified by:
      executeList in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
    • localize

      protected void localize(Execution execution, String activityId)
    • ensureVariablesInitialized

      protected void ensureVariablesInitialized()
      Overrides:
      ensureVariablesInitialized in class org.flowable.variable.service.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
    • getOnlyProcessInstances

      public boolean getOnlyProcessInstances()
    • getProcessDefinitionKey

      public String getProcessDefinitionKey()
    • getProcessDefinitionKeyLike

      public String getProcessDefinitionKeyLike()
    • getProcessDefinitionKeyLikeIgnoreCase

      public String getProcessDefinitionKeyLikeIgnoreCase()
    • getProcessDefinitionId

      public String getProcessDefinitionId()
    • getProcessDefinitionCategory

      public String getProcessDefinitionCategory()
    • getProcessDefinitionCategoryLike

      public String getProcessDefinitionCategoryLike()
    • getProcessDefinitionCategoryLikeIgnoreCase

      public String getProcessDefinitionCategoryLikeIgnoreCase()
    • getProcessDefinitionName

      public String getProcessDefinitionName()
    • getProcessDefinitionNameLike

      public String getProcessDefinitionNameLike()
    • getProcessDefinitionNameLikeIgnoreCase

      public String getProcessDefinitionNameLikeIgnoreCase()
    • getProcessDefinitionVersion

      public Integer getProcessDefinitionVersion()
    • getProcessDefinitionEngineVersion

      public String getProcessDefinitionEngineVersion()
    • getActivityId

      public String getActivityId()
    • getProcessInstanceId

      public String getProcessInstanceId()
    • getRootProcessInstanceId

      public String getRootProcessInstanceId()
    • getProcessInstanceIds

      public String getProcessInstanceIds()
    • getBusinessKey

      public String getBusinessKey()
    • getBusinessKeyLike

      public String getBusinessKeyLike()
    • getBusinessKeyLikeIgnoreCase

      public String getBusinessKeyLikeIgnoreCase()
    • getBusinessStatus

      public String getBusinessStatus()
    • getBusinessStatusLike

      public String getBusinessStatusLike()
    • getBusinessStatusLikeIgnoreCase

      public String getBusinessStatusLikeIgnoreCase()
    • getExecutionId

      public String getExecutionId()
    • getId

      public String getId()
      Specified by:
      getId in interface org.flowable.common.engine.api.query.CacheAwareQuery<org.flowable.engine.impl.persistence.entity.ExecutionEntity>
    • getSuperProcessInstanceId

      public String getSuperProcessInstanceId()
    • getSubProcessInstanceId

      public String getSubProcessInstanceId()
    • isExcludeSubprocesses

      public boolean isExcludeSubprocesses()
    • getSuspensionState

      public org.flowable.common.engine.impl.db.SuspensionState getSuspensionState()
    • setSuspensionState

      public void setSuspensionState(org.flowable.common.engine.impl.db.SuspensionState suspensionState)
    • getEventSubscriptions

      public List<org.flowable.eventsubscription.service.impl.EventSubscriptionQueryValue> getEventSubscriptions()
    • isIncludeChildExecutionsWithBusinessKeyQuery

      public boolean isIncludeChildExecutionsWithBusinessKeyQuery()
    • setEventSubscriptions

      public void setEventSubscriptions(List<org.flowable.eventsubscription.service.impl.EventSubscriptionQueryValue> eventSubscriptions)
    • isActive

      public boolean isActive()
    • getInvolvedUser

      public String getInvolvedUser()
    • setInvolvedUser

      public void setInvolvedUser(String involvedUser)
    • getInvolvedUserIdentityLink

      public IdentityLinkQueryObject getInvolvedUserIdentityLink()
    • getInvolvedGroupIdentityLink

      public IdentityLinkQueryObject getInvolvedGroupIdentityLink()
    • getInvolvedGroups

      public Set<String> getInvolvedGroups()
    • setInvolvedGroups

      public void setInvolvedGroups(Set<String> involvedGroups)
    • getProcessDefinitionIds

      public Set<String> getProcessDefinitionIds()
    • getProcessDefinitionKeys

      public Set<String> getProcessDefinitionKeys()
    • getParentId

      public String getParentId()
    • isOnlyChildExecutions

      public boolean isOnlyChildExecutions()
    • isOnlySubProcessExecutions

      public boolean isOnlySubProcessExecutions()
    • isOnlyProcessInstanceExecutions

      public boolean isOnlyProcessInstanceExecutions()
    • getTenantId

      public String getTenantId()
    • getTenantIdLike

      public String getTenantIdLike()
    • getTenantIdLikeIgnoreCase

      public String getTenantIdLikeIgnoreCase()
    • isWithoutTenantId

      public boolean isWithoutTenantId()
    • getReferenceId

      public String getReferenceId()
    • getReferenceType

      public String getReferenceType()
    • getName

      public String getName()
    • getNameLike

      public String getNameLike()
    • setName

      public void setName(String name)
    • setNameLike

      public void setNameLike(String nameLike)
    • getNameLikeIgnoreCase

      public String getNameLikeIgnoreCase()
    • setNameLikeIgnoreCase

      public void setNameLikeIgnoreCase(String nameLikeIgnoreCase)
    • getDeploymentId

      public String getDeploymentId()
    • setDeploymentId

      public void setDeploymentId(String deploymentId)
    • getDeploymentIds

      public List<String> getDeploymentIds()
    • setDeploymentIds

      public void setDeploymentIds(List<String> deploymentIds)
    • getActiveActivityId

      public String getActiveActivityId()
    • setActiveActivityId

      public void setActiveActivityId(String activeActivityId)
    • getActiveActivityIds

      public Set<String> getActiveActivityIds()
    • setActiveActivityIds

      public void setActiveActivityIds(Set<String> activeActivityIds)
    • getStartedBefore

      public Date getStartedBefore()
    • setStartedBefore

      public void setStartedBefore(Date startedBefore)
    • getStartedAfter

      public Date getStartedAfter()
    • setStartedAfter

      public void setStartedAfter(Date startedAfter)
    • getStartedBy

      public String getStartedBy()
    • setStartedBy

      public void setStartedBy(String startedBy)
    • getLocale

      public String getLocale()
    • isWithLocalizationFallback

      public boolean isWithLocalizationFallback()
    • getCallbackId

      public String getCallbackId()
    • getCallbackType

      public String getCallbackType()
    • getOrQueryObjects

      public List<ExecutionQueryImpl> getOrQueryObjects()
    • getSafeInvolvedGroups

      public List<List<String>> getSafeInvolvedGroups()
    • setSafeInvolvedGroups

      public void setSafeInvolvedGroups(List<List<String>> safeInvolvedGroups)
    • getRootScopeId

      public String getRootScopeId()
    • getParentScopeId

      public String getParentScopeId()