Howto use ExecutionAdministration

delbd <[email protected]>
Newsgroups gmane.comp.java.enhydra.shark
Organization Institut Royal Météorologique
Message-ID <[email protected]>
Can someone enlight me on the org.enhydra.shark.api.client.wfservice.ExecutionAdministration
interface.

This code:
		ExecutionAdministration admin = ....;
		admin.connect("admin","enhydra","","");
		WfProcessMgr[] mgrs = admin.get_sequence_processmgr(0);
		for (int i = 0; i<mgrs.length;i++){
			System.out.println("mgr name: "+mgrs[i].name());
			WfProcess[] processes = mgrs[i].get_sequence_process(0);
			System.out.println("Has "+processes.length+" processes");
			for (int j = 0; j<processes.length;j++)
				System.out.println(processes[j].name()+" -> "+processes[j].state());
		}

works pretty good at listing shark processes, per XPDL wf definition

But this one:

		WfProcessIterator prIterator = admin.get_iterator_process();
		WfProcess process;
		assertEquals("There must be exactly 3 process running",3,prIterator.how_many());

Fail with because the prIterator has length of 0
Why, shouldn't it have the list of all processes??

The documentation of the ExecutionAdministration Interface is not really clear 
on what methods do. Am pretty lost. How do i easily get a list of WfProcess in the engine
without using a 2 steps operation implying receiving list of definitions?

Thanks for help.


-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?
message-footer.txt (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.