3 Replies Latest reply on Mar 9, 2012 7:18 AM by swiderski.maciej

    display the history logs for a process instance

    malabalu

      how do we display the history logs for the process instance that are stored in the  database. The documentation shows how to configure the database to store the history logs but not where it can be read back and displayed.

        • 1. Re: display the history logs for a process instance
          arunvg

          Hope you are looking for  the API for retrieving the history data. If you want to access the histry log provided by the JBPM you can use the below code

           

           

          //Enabling the history Service



          JPAWorkingMemoryDbLogger workingMemoryDbLogger =  new JPAWorkingMemoryDbLogger(knowledgeSession);



          // Get the JPA interface for History service



          JPAProcessInstanceDbLog historyService = new JPAProcessInstanceDbLog(knowledgeSession.getEnvironment());



           

           

          The JPAProcessInstanceDbLog gives the API for retrieving the available history related data

           

           

          Another way to implement your on history log is to implement the ProcessEventListener , check the documentation for more details.

           

          Cheers

          1 of 1 people found this helpful
          • 2. Re: display the history logs for a process instance
            malabalu

            thanks Arunf or your reply ...I was looking for more of a UI based page or view to display the logs for audit purpose.

             

            May be I should develop a web based page and retrieve the logs through API and dispaly it.

            • 3. Re: display the history logs for a process instance
              swiderski.maciej

              You can look at Business Activity Monitoring capabilities of jBPM5 that is embedded in console as well. Here you can find some details about BAM in general and here about its integration with jbpm-console.

               

              HTH

              1 of 1 people found this helpful