Extend HistoricDetailQuery to pass variableName

Description

For checking a specific HistoricDetail for value, currently foreach method is used for equality of the name. For example:

List<HistoricDetail> hds= processEngine.getHistoryService().createHistoricDetailQuery().list();
for (HistoricDetail hd : hds)
{
HistoricVariableUpdate hwu = (HistoricVariableUpdate) hd;

if (hwu.getVariableName().equals(variableName))
{
//Do something
}
}

I would like to use something like:
List<HistoricDetail> hds= processEngine.getHistoryService().createHistoricDetailQuery().variableName("variableName").list();

In this way it will be possible to see which activities has changed the value of a variable.
Thanks.

Assignee

Frederik Heremans

Reporter

G_k_en G_ner

Labels

None

Components

Fix versions

Priority

Major
Configure