1 Reply Latest reply on Jan 17, 2007 7:52 AM by bertrand.njiipwo

    Get all the process definitions

    srsuarez

      Hi,
      I am new to jBPM so this question may seem trivial. I need to obtain the list of all the process definitions that are saved on the database. I want to know if there is some method that give it to me. I have searched on the ProcessDefinition class but I don't find it. Anybody know if it is created?
      Thanks.

        • 1. Re: Get all the process definitions

          Hi Srsuarez,

          Get first the GraphSession object. From this call the findAllProcessDefinitionVersion() method with the specify name of the BPEL-process definition:

          org.jbpm.db.GraphSession graphSession = jbpmContext.getGraphSession();
          graphSession.findAllProcessDefinitionVersions("bpelProcessDef");


          So i hope it's help.

          Bertrand