2 Replies Latest reply on Sep 20, 2011 9:42 AM by salaboy21

    How to get completed processes?

    a.d.jbpm

      Hi,

      How could I get processes that are not in ACTIVE state (for instance, completed processes)?

      Because when I call ksession.getProcessInstance(id) on a completed process, I get null.

       

      Thanks,

       

      Sam

        • 1. Re: How to get completed processes?
          swiderski.maciej

          If you would like to get completed processes you need to configure history log and then query it.

           

          Moreover you can configure your own event listeners so you can gather what information you need and store it wherever you like.

           

          HTH

          • 2. Re: How to get completed processes?
            salaboy21

            Yes, Maciej is right.. I think that the best approach is to decouple those queries from the runtime session. You can directly get the information from the history logs or some custom listener that you can attach to the session to store information in a different storage.

            Cheers

            1 of 1 people found this helpful