I can use de API for find all the instance of a process:
List processInstances = graphSession.findProcessInstances(processDefinition.getId());
With this sentence I load ALL the instance in the list, is there any way to load the instances wich are in a particular state?
Take a look at this thread -> http://www.jboss.com/index.html?module=bb&op=viewtopic&t=91134 since it treats a problem like yours.
Regards.
PS. Please STFF before you ask anything.