AnsweredAssumed Answered

How to check which sub-process an Activity is part of, in History Activities

Question asked by sandro.oliveira on Apr 29, 2016
Latest reply on May 2, 2016 by martin.grofcik
Hello,

I think it should be a very simple question, however, as I am a begginer in Activity framework, couldn't figure out how to check which sub-process an Activity belongs to in history Activities. By doing the query below I can retrieve all historiy activities of my process, however, in historicActivityInstance object there is no any attribute that indicates if an activity is part of a sub-process or not, could you please help me on it?

Thanks in advance!
Best regards,
Sandro

activitiServices.getHistoryService().createHistoricActivityInstanceQuery()
               .processInstanceId(jobId)
               .orderByHistoricActivityInstanceStartTime()
               .asc()
               .list();

Outcomes