cancel
Showing results for 
Search instead for 
Did you mean: 

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

sandro_oliveira
Champ in-the-making
Champ in-the-making
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();
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Sandro,

hist. activity instance has reference to process instance id

  /** Process instance reference */
  String getProcessInstanceId();
(Hist. proc. instance id)

Regards
Martin