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.
I also encountered this.... i need a list of the process instances and it seams that this is the only way..
but why did Gavin restrict the search input variables access !??!