Re: howto get name of process definition?

Peter Niederlag <[email protected]> Thu, 01 Sep 2005 14:33:27 +0200
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
David Delbecq schrieb:
> Thanks Neville,
> 
> Unfortunately this code need at least one existing WfProcess for the given definition,
> this is of no help when you want to create a list of existing definition so user can start
> one of them...

I do start with ExceutionAdministration, don't think that's what you are
looking for but anyway.

I use CORAB-server and php-java-bridge, code is something like this:

query = "";
itr = ea->get_iterator_processmgr();
mgr[]= itr = itr->get_next_n_sequence(0);

then I can do
foreach mgr as sMgr {
	sMgr->name();
}

---------------------
Here's the PHP-Code:
---------------------
$execAdmin =
tx_pnworkflow_WfService::getWfService()->getExecutionAdministration();
			$execAdmin->connect("admin_pn","enhydra","Shark","");
			
      		$wfProcessMgrIterator = $execAdmin->get_iterator_processmgr();
      		
      		//$query = "packageId.equals(\"test\") && enabled.booleanValue()";
      		$query = "";

      		$wfProcessMgrIterator->set_query_expression($query);
      		$wfProcessMgr = $wfProcessMgrIterator->get_next_n_sequence(0);
		} catch  (java_exception $jex) {

		}

HtH,
Peter
-- 
Peter Niederlag * Neuer Sandberg 9 * 31535 Neustadt *
Fon 05036/924100 * Fax 05036/924105
http://www.niekom.de * TYPO3 und EDV Dienstleistungen *
http://www.clown-goli.de * Clown-Comedy-Jonglage-Animation *
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