Query for failed process instances

Description

Using Job query in the ManagementService is very useful in order to know which steps have been failed and then try to execute them again, As you know, in the RuntimeService you can query for process instances that are active() or suspended(), but I wonder if it's possible to integrate one more option in that service in the ProcessInstanceQuery which query for the process instances that are failed(), something like is:

runtimeService.createProcessInstanceQuery.failed().list();

I think it could be a very good and very useful feature for the Activiti API. Actually I need something like this.

Assignee

Tijs Rademakers

Reporter

Jesus Gerardo Cruz Hern_ndez

Labels

None

Components

Fix versions

Priority

Major
Configure