# How to query started but failed activity in a process instance

**URL:** <https://forum.flowable.org/t/how-to-query-started-but-failed-activity-in-a-process-instance/3167>\
**Category:** Flowable Engine\
**Created:** [January 3, 2019, 11:58am UTC](https://forum.flowable.org/t/how-to-query-started-but-failed-activity-in-a-process-instance/3167 "2019-01-03T11:58:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaosong](https://avatars.discourse-cdn.com/v4/letter/x/91b2a8/32.png) [@xiaosong](https://forum.flowable.org/u/xiaosong)\
**Post date:** [January 3, 2019, 11:58am UTC](https://forum.flowable.org/t/how-to-query-started-but-failed-activity-in-a-process-instance/3167/1 "2019-01-03T11:58:12Z")

</div>

once an activity failed (after retries), it seems like runtime service dose not have info about the process instance anymore, but historyservice.createHistoricActivityInstanceQuery does not seem to have any info about failed activity either. how can i draw a diagram so that users know which activities succeeded and which one failed?
