1 Reply Latest reply on Jan 17, 2006 11:35 AM by camunda

    retrieve logs of sub processes

    maplat

      Hi,

      I'm using the jbpm process logs and try to retrieve it for my application, which is basically working, but not for logs created from sub processes.

      I do a lookup for the loogs with

      jbpmSession.getLoggingSession().findLogsByProcessInstance(procId);


      which returns the logs created from the parent process instance, but not from the sub processes created by the parent.

      Is there any chance to retrieve the logs other than storing the processInstanceId's of all sub processes?

      thanks

      Markus

        • 1. Re: retrieve logs of sub processes
          camunda

          Hi Markus,

          you can query sub process ids easyly, no need to store it on you own, jbpm knows what going on:

          while (processInstance.getRootToken().getSubProcessInstance()!=null) {
          processInstance = processInstance.getRootToken().getSubProcessInstance();

          // query logs here and add it to the result

          }


          Note that there is a bug with sub processes and logs in jbpm: http://jira.jboss.com/jira/browse/JBPM-477