4 Replies Latest reply on Dec 11, 2009 1:44 PM by sebastian.s

    Unable to retrive the process instance

      I am using the below code snippet to find all the instances associated with process defination name which is encounter. It is not working , the size of the list is zero. Am i using the wrong code? or is there any other code to retrive the instances...? please help me as iam new to jBPM

      Thanks in advance


      List<ProcessInstance> results = executionService.createProcessInstanceQuery()
       .processDefinitionId("encounter")
       .notSuspended()
       .page(0, 50)
       .list();