Class ExecutionQueryImpl

    • Field Detail

      • processDefinitionId

        protected java.lang.String processDefinitionId
      • processDefinitionKey

        protected java.lang.String processDefinitionKey
      • processDefinitionCategory

        protected java.lang.String processDefinitionCategory
      • processDefinitionName

        protected java.lang.String processDefinitionName
      • processDefinitionVersion

        protected java.lang.Integer processDefinitionVersion
      • activityId

        protected java.lang.String activityId
      • executionId

        protected java.lang.String executionId
      • parentId

        protected java.lang.String parentId
      • onlyChildExecutions

        protected boolean onlyChildExecutions
      • onlySubProcessExecutions

        protected boolean onlySubProcessExecutions
      • onlyProcessInstanceExecutions

        protected boolean onlyProcessInstanceExecutions
      • processInstanceId

        protected java.lang.String processInstanceId
      • rootProcessInstanceId

        protected java.lang.String rootProcessInstanceId
      • tenantId

        protected java.lang.String tenantId
      • tenantIdLike

        protected java.lang.String tenantIdLike
      • withoutTenantId

        protected boolean withoutTenantId
      • locale

        protected java.lang.String locale
      • withLocalizationFallback

        protected boolean withLocalizationFallback
      • startedBefore

        protected java.util.Date startedBefore
      • startedAfter

        protected java.util.Date startedAfter
      • startedBy

        protected java.lang.String startedBy
      • superProcessInstanceId

        protected java.lang.String superProcessInstanceId
      • subProcessInstanceId

        protected java.lang.String subProcessInstanceId
      • excludeSubprocesses

        protected boolean excludeSubprocesses
      • businessKey

        protected java.lang.String businessKey
      • includeChildExecutionsWithBusinessKeyQuery

        protected boolean includeChildExecutionsWithBusinessKeyQuery
      • isActive

        protected boolean isActive
      • involvedUser

        protected java.lang.String involvedUser
      • processDefinitionKeys

        protected java.util.Set<java.lang.String> processDefinitionKeys
      • processDefinitionIds

        protected java.util.Set<java.lang.String> processDefinitionIds
      • name

        protected java.lang.String name
      • nameLike

        protected java.lang.String nameLike
      • nameLikeIgnoreCase

        protected java.lang.String nameLikeIgnoreCase
      • deploymentId

        protected java.lang.String deploymentId
      • deploymentIds

        protected java.util.List<java.lang.String> deploymentIds
    • Constructor Detail

      • ExecutionQueryImpl

        public ExecutionQueryImpl()
      • ExecutionQueryImpl

        public ExecutionQueryImpl​(CommandContext commandContext)
      • ExecutionQueryImpl

        public ExecutionQueryImpl​(CommandExecutor commandExecutor)
    • Method Detail

      • isProcessInstancesOnly

        public boolean isProcessInstancesOnly()
      • processDefinitionKeys

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

        public ExecutionQueryImpl parentId​(java.lang.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
      • signalEventSubscription

        public ExecutionQuery signalEventSubscription​(java.lang.String signalName)
      • signalEventSubscriptionName

        public ExecutionQuery signalEventSubscriptionName​(java.lang.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​(java.lang.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​(java.lang.String eventType,
                                                java.lang.String eventName)
      • processVariableValueEquals

        public ExecutionQuery processVariableValueEquals​(java.lang.String variableName,
                                                         java.lang.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​(java.lang.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​(java.lang.String variableName,
                                                            java.lang.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​(java.lang.String name,
                                                                   java.lang.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​(java.lang.String name,
                                                                      java.lang.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​(java.lang.String name,
                                                       java.lang.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​(java.lang.String name,
                                                                 java.lang.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
      • 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​(java.util.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​(java.util.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​(java.lang.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)
      • localize

        protected void localize​(Execution execution,
                                java.lang.String activityId)
      • getOnlyProcessInstances

        public boolean getOnlyProcessInstances()
      • getProcessDefinitionKey

        public java.lang.String getProcessDefinitionKey()
      • getProcessDefinitionId

        public java.lang.String getProcessDefinitionId()
      • getProcessDefinitionCategory

        public java.lang.String getProcessDefinitionCategory()
      • getProcessDefinitionName

        public java.lang.String getProcessDefinitionName()
      • getProcessDefinitionVersion

        public java.lang.Integer getProcessDefinitionVersion()
      • getActivityId

        public java.lang.String getActivityId()
      • getProcessInstanceId

        public java.lang.String getProcessInstanceId()
      • getRootProcessInstanceId

        public java.lang.String getRootProcessInstanceId()
      • getProcessInstanceIds

        public java.lang.String getProcessInstanceIds()
      • getBusinessKey

        public java.lang.String getBusinessKey()
      • getExecutionId

        public java.lang.String getExecutionId()
      • getSuperProcessInstanceId

        public java.lang.String getSuperProcessInstanceId()
      • getSubProcessInstanceId

        public java.lang.String getSubProcessInstanceId()
      • isExcludeSubprocesses

        public boolean isExcludeSubprocesses()
      • setSuspensionState

        public void setSuspensionState​(SuspensionState suspensionState)
      • isIncludeChildExecutionsWithBusinessKeyQuery

        public boolean isIncludeChildExecutionsWithBusinessKeyQuery()
      • isActive

        public boolean isActive()
      • getInvolvedUser

        public java.lang.String getInvolvedUser()
      • setInvolvedUser

        public void setInvolvedUser​(java.lang.String involvedUser)
      • getProcessDefinitionIds

        public java.util.Set<java.lang.String> getProcessDefinitionIds()
      • getProcessDefinitionKeys

        public java.util.Set<java.lang.String> getProcessDefinitionKeys()
      • getParentId

        public java.lang.String getParentId()
      • isOnlyChildExecutions

        public boolean isOnlyChildExecutions()
      • isOnlySubProcessExecutions

        public boolean isOnlySubProcessExecutions()
      • isOnlyProcessInstanceExecutions

        public boolean isOnlyProcessInstanceExecutions()
      • getTenantId

        public java.lang.String getTenantId()
      • getTenantIdLike

        public java.lang.String getTenantIdLike()
      • isWithoutTenantId

        public boolean isWithoutTenantId()
      • getName

        public java.lang.String getName()
      • getNameLike

        public java.lang.String getNameLike()
      • setName

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

        public void setNameLike​(java.lang.String nameLike)
      • getNameLikeIgnoreCase

        public java.lang.String getNameLikeIgnoreCase()
      • setNameLikeIgnoreCase

        public void setNameLikeIgnoreCase​(java.lang.String nameLikeIgnoreCase)
      • getStartedBefore

        public java.util.Date getStartedBefore()
      • setStartedBefore

        public void setStartedBefore​(java.util.Date startedBefore)
      • getStartedAfter

        public java.util.Date getStartedAfter()
      • setStartedAfter

        public void setStartedAfter​(java.util.Date startedAfter)
      • getStartedBy

        public java.lang.String getStartedBy()
      • setStartedBy

        public void setStartedBy​(java.lang.String startedBy)