Re: {Spam?} Select Process How To

Frans Thamura <[email protected]>
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
Thx Gram,

Right now my shark,
1. can list all the package using  getOpenedPackageIds(); this code come 
from EngineTreeModel.
2. No, i will start to initiate.

wait for the update.

NB: I will open source this project after that,



[email protected] wrote:

>
> Hi Frans:
>
> After some digging, I found some code in 
> org.enhydra.shark.swingclient.workflowadmin.getTreeCellRendererComponent 
> which i think is being used for the display of the list in the left 
> panel of the swing client when you click on the "Process monitor" tab 
> of the swing application:
>
> /case 1:/..
>         /org.enhydra.jawe.xml.elements.Package pkg=/
> /                  (org.enhydra.jawe.xml.elements.Package)/
> /                  ((DefaultMutableTreeNode)value).getUserObject();/
> /               String disp=ResourceManager./
> /                  
> getLanguageDependentString("PackageKey")+"-"+pkg.toString();/
> ...etc..
>
> /case 2:/
>         ..
>         /String name;/
>         ..
>         
> /name=SharkAdmin.getAdminMiscUtilities().getProcessMgrProcDefName(mgr.name());/ 
>
>         ...
>        /String disp=ResourceManager./
> /                  
> getLanguageDependentString("ProcessDefinitionKey")+"-"+name;/
> ..etc..
>
> The ResourceManager being referred to above is in: 
> modules\SharkSwingClient\src\org\enhydra\shark\swingclient\resources\SharkClient.properties 
> which has the notations:
>
> /PackageKey=Package/
> /ProcessDefinitionKey=Process definition/
>
> which is why we see what we do..
>
> Hope this helps,
> Geeta
>
>
>
> *"Frans Thamura" <[email protected]>*
>
> 07/13/2005 01:28 PM
> Please respond to
> [email protected]
>
>
> 	
> To
> 	[email protected]
> cc
> 	
> Subject
> 	{Spam?} [shark] Select Process How To
>
>
>
> 	
>
>
>
>
>
> Hi All,
>
> I want to port the process monitoring of Shark Admin to become a web 
> based.
>
> i got this script from JSPUtilities.
>
> org.enhydra.shark.api.client.wfmodel
>
> and this script below.
>
> Anyone can give me logic how the process monitoring (Select process) work
>
> I try below script and got this result:
>
> Process_Repository#1#Process_Repository_Wor1
> Process_Repository#1#Process_Repository_Wor2
> Business_Example#1#Business_Example_Wor1
> Business_Example#1#Business_Example_Wor2
> Business_Example#1#Business_Example_Wor3
> test_sched#1#test_sched_Wor3
> shark_retailer#1#retailer
>
> this is not readable output. but the select process swing version is cool.
>
> anyone can help?
>
>
>
> ea = Shark
>                                           .getInstance()
>                                           .getAdminInterface()
>                                           .getExecutionAdministration();
>                                           ea.connect(userName, pwd, 
> engineName, null);
>                                           WfProcessMgr[] a = ea
>                                           .get_iterator_processmgr()
>                                           .get_next_n_sequence(0);
>                                           String [] ret = new 
> String[a.length];
>                                           for (int i = 0; i < 
> a.length; ++i) {
>                                              String n = a[i].name();
>                                              if (_debug_)
>                                                 
> System.err.println("processName "+n);
>                                              ret[i]= n;
>                                           }
>                                           return ret;
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
> --
> 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
>
>
> CONFIDENTIALITY NOTICE:This email is intended solely for the person or 
> entity to which it is addressed and may contain confidential and/or 
> protected health information.  Any duplication, dissemination, action 
> taken in reliance upon, or other use of this information by persons or 
> entities other than the intended recipient is prohibited and may 
> violate applicable laws.  If this email has been received in error, 
> please notify the sender and delete the information from your system. 
>  The views expressed in this email are those of the sender and may not 
> necessarily represent the views of IntelliCare.
>
>------------------------------------------------------------------------
>
>
>--
>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
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.