-
1. Re: how to get process state start and end date after completion of all its sub processes tasks
homes Jan 25, 2010 3:06 AM (in response to peterbasutkar)Hey,
I hope you want a solution for jbpm 4.x! You can use the HistoryService to get the start- and end-time.
HistoryService.createHistoryProcessInstanceQuery().processInstanceId("your_processInstanceId").orderAsc(HistoryProcessInstanceQuery.PROPERTY_STARTTIME).uniqueResult();
HistoryService.createHistoryProcessInstanceQuery().processInstanceId("your_processInstanceId").orderAsc(HistoryProcessInstanceQuery.PROPERTY_ENDTIME).uniqueResult();
-
2. Re: how to get process state start and end date after completion of all its sub processes tasks
peterbasutkar Jan 27, 2010 7:15 AM (in response to homes)But What is HistoryService -
3. Re: how to get process state start and end date after completion of all its sub processes tasks
peterbasutkar Jan 27, 2010 7:24 AM (in response to peterbasutkar)which jbpm jar file containes HistoryService interface? -
4. Re: how to get process state start and end date after completion of all its sub processes tasks
homes Jan 27, 2010 7:41 AM (in response to peterbasutkar)I'm not sure if you want a solution for jbpm 4, but I will explain it anyway.
The HistoryService is a service to get access to data of executions from the past. So you can find infos about start- and end-time of a finished process instances, e.g. The HistoryService is available within the jbpm.jar (not the service directly, only the classes ) .
In the code examples of jbpm 4 you will find an example to get access to the HistoryService.
-
5. Re: how to get process state start and end date after completion of all its sub processes tasks
peterbasutkar Jan 27, 2010 8:05 AM (in response to homes)Thanx, but i am using jbpm 3.2.6.......