User development, A new message was posted in the thread "how to find all processInstance":
http://community.jboss.org/message/528399#528399 Author : ciccio ciccio Profile : http://community.jboss.org/people/ciccioVega Message: -------------------------------------------------------------- No, im using jbpm 4.3. I'm explain my case: I have a DirectoryListener and on addFile dm.addDirectoryChangeListener(new DirectoryChangeListener() { public void directoryChange(DirectoryChangeEvent dce) { File file = (File)dce.getSource(); if (dce.getType() == DirectoryChangeEvent.FILE_ADDED) { HashMap<String,String> hashMap = new HashMap<String,String>(); hashMap.put("image_path", file.toString()); executionService.startProcessInstanceByKey("DEMO",hashMap); System.out.println("added: " + file.toString()); } else if (dce.getType() == DirectoryChangeEvent.FILE_REMOVED) { System.out.println("removed: " + file.toString()); } } }); When a file is added on dir, a new processInstace is started. Using List<ProcessInstance> listP = processEngine.get(ExecutionService.class).createProcessInstanceQuery().processInstanceKey("DEMO").list(); and while there are a lot of processInstances, the listP is empty. I think that i can't use .processInstanceId("") because every process has a own Id (eg DEMO.xxxxxxx) Any Idea? TIA ciccio -------------------------------------------------------------- To reply to this message visit the message page: http://community.jboss.org/message/528399#528399
_______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user