1 Reply Latest reply on Sep 4, 2009 10:56 AM by Yasser Hawari

    Re: ProcessInstanceFinder and how to use it

    Pieter Martin Novice

      Hi,


      I am using 'processInstanceList' that the ProcessInstanceFinder is responsible for creating.


      The ProcessInstanceFinder class has private variables with protected getters and setters for specifying criteria on the processInstanceList search.


      How is it envisaged for a client of the class to set these variables. When I create my own subclass of ProcessInstanceFinder to expose the variables as public then I get an excpetion


      Caused by: java.lang.IllegalStateException: duplicate factory for: org.jboss.seam.bpm.processInstanceList (duplicates are specified in org.jboss.seam.bpm.processInstanceFinder and anarchyProcessInstanceFinder)



      Currently I have made a copy of the class exposing the search criteria variables as public. It works like a charm but I am sure Gavin did not have that in mind when creating the class.


      Cheers
      Pieter