3 Replies Latest reply on Aug 4, 2008 12:25 PM by Pete Muir

    jbpm.getProcessDefinitions()

    Mike Schulze Newbie

      Hi everyone,
      I'm using Seam and jBPM. At runtime I'd like to know which businessprocesses are deployed. Well usually I thought i could use the method 'getProcessDefinitions' of the class 'org.jboss.seam.bpm.Jbpm', which worked during the development quite well. I used this method to get the information.




      public void showProcessInfo(){
          List<String> result = Arrays.asList(Jbpm.instance().getProcessDefinitions());
          if (result.size() > 0) {
              int i = 0;
           for (String s : result) {
               log.info("Definition #" + i++ + ": " + s);
           }
          }
      }




      For production purposes I removed the process-definition entries from the components.xml, because I don't want to have Seam add all the business-process-information to my jbpm-database each time I start up my application. But now the getProcessDefinitions-Method no longer works. It seems to me it retrieves its information from the components.xml and not out of the Database.
      Is this right? Does anybody know whether its a bug or intended?
      I find it quite confusing that some methods work while developing but not in production.


      Thx - Mike
      (by the way - my processes are deployed correctly)