AnsweredAssumed Answered

HistoricActivityInstanceQuery missing a method

Question asked by rafaelduqueestrada on May 3, 2016
Latest reply on May 4, 2016 by rafaelduqueestrada
I need to collect end time from a service task. The table who has this information is ACT_HI_ACTINST.
I'm trying to use the query API for collect this information, but i'm unable to do what i need.
I need something like this:

        List<HistoricActivityInstance> result = historyService.createHistoricActivityInstanceQuery()
                .processVariableValueEquals(variableName, variableValue)
                .activityId(activityId)
                .orderByHistoricActivityInstanceEndTime()
                .desc()
                .list();

But the method .processVariableValueEquals(variableName, variableValue) doesn't exist.
Someone has a good solution?
(I don't want to recovery a proc instance, I have a unique variable in my process to do that)

Outcomes