Interface HistoricProcessInstanceQuery

    • Method Detail

      • processInstanceId

        HistoricProcessInstanceQuery processInstanceId​(java.lang.String processInstanceId)
        Only select historic process instances with the given process instance. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.
      • processInstanceIds

        HistoricProcessInstanceQuery processInstanceIds​(java.util.Set<java.lang.String> processInstanceIds)
        Only select historic process instances whose id is in the given set of ids. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.
      • processDefinitionId

        HistoricProcessInstanceQuery processDefinitionId​(java.lang.String processDefinitionId)
        Only select historic process instances for the given process definition
      • processDefinitionKey

        HistoricProcessInstanceQuery processDefinitionKey​(java.lang.String processDefinitionKey)
        Only select historic process instances that are defined by a process definition with the given key.
      • processDefinitionKeyIn

        HistoricProcessInstanceQuery processDefinitionKeyIn​(java.util.List<java.lang.String> processDefinitionKeys)
        Only select historic process instances that are defined by a process definition with one of the given process definition keys.
      • processDefinitionKeyNotIn

        HistoricProcessInstanceQuery processDefinitionKeyNotIn​(java.util.List<java.lang.String> processDefinitionKeys)
        Only select historic process instances that don't have a process-definition of which the key is present in the given list
      • processDefinitionCategory

        HistoricProcessInstanceQuery processDefinitionCategory​(java.lang.String processDefinitionCategory)
        Only select historic process instances whose process definition category is processDefinitionCategory.
      • processDefinitionName

        HistoricProcessInstanceQuery processDefinitionName​(java.lang.String processDefinitionName)
        Select process historic instances whose process definition name is processDefinitionName
      • processDefinitionVersion

        HistoricProcessInstanceQuery processDefinitionVersion​(java.lang.Integer processDefinitionVersion)
        Only select historic process instances with a certain process definition version. Particulary useful when used in combination with processDefinitionKey(String)
      • processInstanceBusinessKey

        HistoricProcessInstanceQuery processInstanceBusinessKey​(java.lang.String processInstanceBusinessKey)
        Only select historic process instances with the given business key
      • deploymentId

        HistoricProcessInstanceQuery deploymentId​(java.lang.String deploymentId)
        Only select historic process instances that are defined by a process definition with the given deployment identifier.
      • deploymentIdIn

        HistoricProcessInstanceQuery deploymentIdIn​(java.util.List<java.lang.String> deploymentIds)
        Only select historic process instances that are defined by a process definition with one of the given deployment identifiers.
      • involvedUser

        HistoricProcessInstanceQuery involvedUser​(java.lang.String userId)
        Only select the historic process instances with which the user with the given id is involved.
      • variableValueEquals

        HistoricProcessInstanceQuery variableValueEquals​(java.lang.String name,
                                                         java.lang.Object value)
        Only select process instances which had a global variable with the given value when they ended. The type only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead! of variable is determined based on the value, using types configured in ProcessEngineConfiguration#getVariableTypes(). Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - of the variable, cannot be null.
      • variableValueEquals

        HistoricProcessInstanceQuery variableValueEquals​(java.lang.Object value)
        Only select process instances which had at least one global variable with the given value when they ended. The type only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead! of variable is determined based on the value, using types configured in ProcessEngineConfiguration#getVariableTypes(). Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
      • variableValueEqualsIgnoreCase

        HistoricProcessInstanceQuery variableValueEqualsIgnoreCase​(java.lang.String name,
                                                                   java.lang.String value)
        Only select historic process instances which have a local string variable with the given value, case insensitive.
        Parameters:
        name - name of the variable, cannot be null.
        value - value of the variable, cannot be null.
      • variableValueNotEquals

        HistoricProcessInstanceQuery variableValueNotEquals​(java.lang.String name,
                                                            java.lang.Object value)
        Only select process instances which had a global variable with the given name, but with a different value than the passed value when they ended. Only select process instances which have a variable value greater than the passed value. Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - of the variable, cannot be null.
      • variableValueGreaterThan

        HistoricProcessInstanceQuery variableValueGreaterThan​(java.lang.String name,
                                                              java.lang.Object value)
        Only select process instances which had a global variable value greater than the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported. Only select process instances which have a variable value greater than the passed value.
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • variableValueGreaterThanOrEqual

        HistoricProcessInstanceQuery variableValueGreaterThanOrEqual​(java.lang.String name,
                                                                     java.lang.Object value)
        Only select process instances which had a global variable value greater than or equal to the passed value when they ended. Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported. Only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead!
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • variableValueLessThan

        HistoricProcessInstanceQuery variableValueLessThan​(java.lang.String name,
                                                           java.lang.Object value)
        Only select process instances which had a global variable value less than the passed value when the ended. Only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead! Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • variableValueLessThanOrEqual

        HistoricProcessInstanceQuery variableValueLessThanOrEqual​(java.lang.String name,
                                                                  java.lang.Object value)
        Only select process instances which has a global variable value less than or equal to the passed value when they ended. Only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead! Booleans, Byte-arrays and Serializable objects (which are not primitive type wrappers) are not supported.
        Parameters:
        name - cannot be null.
        value - cannot be null.
      • variableValueLike

        HistoricProcessInstanceQuery variableValueLike​(java.lang.String name,
                                                       java.lang.String value)
        Only select process instances which had global variable value like the given value when they ended. Only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead! This can be used on string variables only.
        Parameters:
        name - cannot be null.
        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

        HistoricProcessInstanceQuery variableValueLikeIgnoreCase​(java.lang.String name,
                                                                 java.lang.String value)
        Only select process instances which had global variable value like (case insensitive) the given value when they ended. Only applies to already ended process instances, otherwise use a ProcessInstanceQuery instead! This can be used on string variables only.
        Parameters:
        name - cannot be null.
        value - cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
      • startedBefore

        HistoricProcessInstanceQuery startedBefore​(java.util.Date date)
        Only select historic process instances that were started before the given date.
      • startedAfter

        HistoricProcessInstanceQuery startedAfter​(java.util.Date date)
        Only select historic process instances that were started after the given date.
      • finishedBefore

        HistoricProcessInstanceQuery finishedBefore​(java.util.Date date)
        Only select historic process instances that were started before the given date.
      • finishedAfter

        HistoricProcessInstanceQuery finishedAfter​(java.util.Date date)
        Only select historic process instances that were started after the given date.
      • startedBy

        HistoricProcessInstanceQuery startedBy​(java.lang.String userId)
        Only select historic process instance that are started by the given user.
      • processInstanceTenantId

        HistoricProcessInstanceQuery processInstanceTenantId​(java.lang.String tenantId)
        Only select process instances that have the given tenant id.
      • processInstanceTenantIdLike

        HistoricProcessInstanceQuery processInstanceTenantIdLike​(java.lang.String tenantIdLike)
        Only select process instances with a tenant id like the given one.
      • processInstanceWithoutTenantId

        HistoricProcessInstanceQuery processInstanceWithoutTenantId()
        Only select process instances that do not have a tenant id.
      • or

        HistoricProcessInstanceQuery or()
        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.
      • endOr

        HistoricProcessInstanceQuery endOr()
        End an OR statement. Only one OR statement is allowed, for the second call to this method an exception will be thrown.
      • superProcessInstanceId

        HistoricProcessInstanceQuery superProcessInstanceId​(java.lang.String superProcessInstanceId)
        Only select historic process instances started by the given process instance. {@link ProcessInstance) ids and {@link HistoricProcessInstance} ids match.
      • excludeSubprocesses

        HistoricProcessInstanceQuery excludeSubprocesses​(boolean excludeSubprocesses)
        Exclude sub processes from the query result;
      • limitProcessInstanceVariables

        HistoricProcessInstanceQuery limitProcessInstanceVariables​(java.lang.Integer processInstanceVariablesLimit)
        Limit process instance variables
      • withJobException

        HistoricProcessInstanceQuery withJobException()
        Only select process instances that failed due to an exception happening during a job execution.
      • processInstanceName

        HistoricProcessInstanceQuery processInstanceName​(java.lang.String name)
        Only select process instances with the given name.
      • processInstanceNameLike

        HistoricProcessInstanceQuery processInstanceNameLike​(java.lang.String nameLike)
        Only select process instances with a name like the given value.
      • processInstanceNameLikeIgnoreCase

        HistoricProcessInstanceQuery processInstanceNameLikeIgnoreCase​(java.lang.String nameLikeIgnoreCase)
        Only select process instances with a name like the given value, ignoring upper/lower case.
      • locale

        HistoricProcessInstanceQuery locale​(java.lang.String locale)
        Localize historic process name and description to specified locale.
      • withLocalizationFallback

        HistoricProcessInstanceQuery withLocalizationFallback()
        Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.