flowable-engine icon indicating copy to clipboard operation
flowable-engine copied to clipboard

Error in documentation of HistoricProcessInstanceQuery?

Open billerby opened this issue 3 years ago • 0 comments

I think the attached javadoc is wrong or at least very unclear. If I excute a HistoricProcessInstanceQuery with by variableValueEquals set I get both running and finished processes back - not only finished processes. The statement " The type only applies to already ended process instances" seems wrong to me? The same statement is stated in the javadoc for all variableValue*-methods.

    /**
     * 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
     * {@link ProcessInstanceQuery} instead! A variable type is determined based on the value, using types configured in {@link org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl#getVariableTypes()}. Byte-arrays and
     * {@link Serializable} objects (which are not primitive type wrappers) are not supported.
     * 
     * @param name
     *            of the variable, cannot be null.
     */
    HistoricProcessInstanceQuery variableValueEquals(String name, Object value);

billerby avatar Nov 16 '21 07:11 billerby