2 Replies Latest reply on Mar 16, 2009 12:03 PM by armita

    Get process definition

    armita

      In order to get a process instance, I need to call getProcessInstance(ProcessDefinition,key) on jbpm context.
      I could not find out how can I get the processDefinition. I have my process definition already deployed to the database and I need to read it from the database.

        • 1. Re: Get process definition

          You can use any one of...
          JbpmContext.getGraphSession().findAllProcessDefinitions()
          JbpmContext.getGraphSession().findLatestProcessDefinitions()

          JbpmContext.getGraphSession().findAllProcessDefinitionVersions(String name)
          JbpmContext.getGraphSession().findLatestProcessDefinition(String name)

          Cheers
          Steve

          • 2. Re: Get process definition
            armita

            Thanks a lot!