2 Replies Latest reply: Aug 10, 2011 12:43 PM by José Luis Granda RSS

Resultes of completion JBPM5 processes

Pavel Sknar Newbie

Keep in mind COMPLETED, FAILED, ERROR, EXITED and other. ProcessInscenceLog can not have this data.

 

ProcessInstanceLog cleared if process instance completed or aborted? If it is true how we can get info about finished processes?

 

In org.jbpm.integration.console.ProcessManagement (jbpm-gwt-console):

....

....

public List<ProcessInstanceRef> getProcessInstances(String definitionId) {

        // TODO: query for active process instances only

        List<ProcessInstanceLog> processInstances = delegate.getProcessInstanceLogsByProcessId(definitionId);

....

....

  • 1. Resultes of completion JBPM5 processes
    Kris Verlaenen Master

    The history log is not cleared by default.  That means it can be used to store and lookup information about completed process instances.  Based on the start and end date, you can derive whether is it still active or has been terminated.  You can even find out more by looking at which nodes were executed (to detect for example normal completion vs. error).

     

    Note that the history log could also be considered an example of how to store history information.  You can easily tweak it to store more or less information, etc. as it is based on a simple listener approach.

     

    Kris

  • 2. Re: Resultes of completion JBPM5 processes
    José Luis Granda Newbie

    Hi Kris, please help me. How I can customize info for history logs?