Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-8608

I cannot query for historic process instances by root incidents only

    Details

      Description

      When there is a hierarchy of process instances (using call activities), then an incident is created at each level of the call activity. The HistoricProcessInstanceQuery provides the option to query for process instances which have incidents (see #withIncidents()):

      historyService.createHistoricProcessInstanceQuery()
        .withIncidents()
        .list()
      

      This query will return all process instances which has an incident.

      AT:

      • there exists another query option like #withRootIncidents()
      • when this query option is used, then only process instances at the "bottom of the hierarchy" are returned
      • query option is exposed in REST API

      Hint:
      An incident is a root incident, when the ID of the incident is equal to the "root cause incident id".

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              yana.vasileva Yana Vasileva
              Reporter:
              roman.smirnov Smirnov Roman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development