[jboss-user] [jBPM] - History Transitions

Sebastian Herbst do-not-reply at jboss.com
Fri Mar 26 06:48:40 EDT 2010


Sebastian Herbst [http://community.jboss.org/people/Herbst] created the discussion

"History Transitions"

To view the discussion, visit: http://community.jboss.org/message/534143#534143

--------------------------------------------------------------
Hello,
is it possible to get the the history including the taken Transitions of a ProcessInstance ?

So far i've just managed to geht the names of the states called during the process. But how do i get the transitions ?

historyService = processEngine.getHistoryService();
 
...
 
private List<HistoryActivityInstance> getHistory(ProcessInstance processInstance)
    {
        String executionId = executionService.findProcessInstanceById(processInstance.getId()).getId();
        List<HistoryActivityInstance> historyActivityInstance = historyService
        .createHistoryActivityInstanceQuery().executionId(executionId) 
        .orderAsc(HistoryProcessInstanceQuery.PROPERTY_STARTTIME).list();
        
        return historyActivityInstance;
    }


The goal is to gett some String like state1 -- toState2 --> state2 -- toState3 --> state3
I know it's all stored in the db jbpm_hist_actinst, but i would prefer geting the information direktly by jbpm methodes.

Greetings and thanks
Sebastian Herbst

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/534143#534143]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100326/4903cbac/attachment.html 


More information about the jboss-user mailing list