Re: howto get name of process definition? found out
David Delbecq <[email protected]> Thu, 1 Sep 2005 15:09:00 +0200
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Organization | Institut Royal Météorologique |
| Message-ID | <[email protected]> |
Seems al interresting datas are accessible using adminMisc
Le Jeudi 1 Septembre 2005 14:49, David Delbecq a écrit :
> Yes, but as i said in first mail, calling name() on a WfProcessMgr give an
> internal name (a unique key), not the name used in the xpdl definition.
> it gives something like test_bs#1#math_operations
>
> ak, this is formed by <packageId>#<version>#<processId>
>
> No name in this String :(
> I looked at the shark admin, but it loads the xpdl an extract it from there :(
>
>
> Le Jeudi 1 Septembre 2005 14:33, Peter Niederlag a écrit :
> > 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
>
--
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