Re: How to get Package version of instatiated process?
Monique Maker <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <[email protected]> |
Hello Raphael, Just a direction: 1. Get the process instance as an object; 2. Get the process manager form the process instance object (I think); 3. Get the version from the process manager object. Here is an example code (note that there are many unhandled exceptions): org.enhydra.shark.api.client.wfservice.ExecutionAdministration execAdmin = Shark.getInstance().getAdminInterface().getExecutionAdministration(); execAdmin.connect( userName, password, engineName, null ); 1. org.enhydra.shark.api.client.wfmodel.WfProcess sharkProcess = execAdmin.getProcess( processKey ); 2. org.enhydra.shark.api.client.wfmodel.WfProcessMgr sharkProcessMgr = sharkProcess.manager(); 3. String packageVersion = sharkProcessMgr.version(); Regards, Monique Dahl, Greg (BLM) - contr wrote: > Sorry. Didn't quite understand your question. > > There must be a way to do it with the Shark interface, however a quick > check of it and I can't seem to find anything obvious. > > Although not an ideal solution, if you wanted to, you could figure out > the current package version at the time the process was instantiated and > update a process variable. Then, you could always query that variable > to find out later. > > Greg > > >>-----Original Message----- >>From: Raphael Kunis [mailto:[email protected]] >>Sent: Thursday, July 28, 2005 9:04 AM >>To: [email protected] >>Subject: Re: [shark] How to get Package version of >>instatiated process? >> >> >>I think that won't help, because this returns just the current last >>updated package version. What I need is the version of the package an >>instatiated process was created with. >> >>For example: >>I cretae a process when the package version is 1. After that I update >>the package. The current version is now 2. This is what the >>function you >>mentioned returns. What I need is a function that returns 1, >>because my >>process is defined in the old package with version 1. >> >>Regards, >>Raphael >> >>Dahl, Greg (BLM) - contr schrieb: >> >>>Try >>> >>> >> >>SharkInterface.getAdminInterface().getPackageAdministration().getCurre >> >>>nt >>>PackageVersion(java.lang.String pkgId); >>> >>>Greg >>> >>> >>> >>>>-----Original Message----- >>>>From: Raphael Kunis [mailto:[email protected]] >>>>Sent: Thursday, July 28, 2005 8:16 AM >>>>To: [email protected] >>>>Subject: [shark] How to get Package version of instatiated process? >>>> >>>> >>>>Hi, >>>> >>>>is there a way to get the package version of an instatiated >> >>process?. >> >>>>Regards, >>>>Raphael >>>> >>>> >>> >>>******* Confidentiality Notice ******* >>>This email, its electronic document attachments, and the >> >>contents of >> >>>its website linkages may contain confidential health information. >>>This information is intended solely for use by the individual or >>>entity to whom it is addressed. If you have received this >> >>information >> >>>in error, please notify the sender immediately and arrange for the >>>prompt destruction of the material and any accompanying attachments. >>> >>> >>> >>> >>> >>> >>> >> >>---------------------------------------------------------------------- >> >>>-- >>> >>> >>>-- >>>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 >> >> >> > >
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