Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[bpel-dev] Re: bpel-dev Digest, Vol 25, Issue 6

thank you very much for the help from Simon and Oleg! I modified the class of "PaletteFactory" and
it works. I didn't realize that BPEL project uses NLS as resource bundle. 

thanks again,
Sam




--- bpel-dev-request@xxxxxxxxxxx wrote:

> Send bpel-dev mailing list submissions to
> 	bpel-dev@xxxxxxxxxxx
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://dev.eclipse.org/mailman/listinfo/bpel-dev
> or, via email, send a message with subject or body 'help' to
> 	bpel-dev-request@xxxxxxxxxxx
> 
> You can reach the person managing the list at
> 	bpel-dev-owner@xxxxxxxxxxx
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of bpel-dev digest..."
> 
> 
> Today's Topics:
> 
>    1. question about BPEL object model API (sam wang)
>    2. how to change "Control" entity's name (sam wang)
>    3. Re: question about BPEL object model API (Simon D Moser)
>    4. RE: how to change "Control" entity's name (Danilov, Oleg V)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 15 Nov 2007 11:08:10 -0800 (PST)
> From: sam wang <samwzm@xxxxxxxxx>
> Subject: [bpel-dev] question about BPEL object model API
> To: bpel-dev@xxxxxxxxxxx
> Message-ID: <489559.31113.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=iso-8859-1
> 
> Thanks the replies from Simon and Michael!
> 
> I have reported the bug about jar file's directory, and I feel sorry that the current Eclipse
> BPEL
> didn't use GMF technology.
> 
> Another question, is there BPEL object model API that I can use to manipulate BPEL
> programmatically instead of through BPEL designer? I know there is a model load method, but I
> need
> more, for example, adding a new parterlink, assign value, etc. 
> 
> thanks!
> Sam
> 
> 
>       ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page. 
> http://www.yahoo.com/r/hs
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 15 Nov 2007 21:26:28 -0800 (PST)
> From: sam wang <samwzm@xxxxxxxxx>
> Subject: [bpel-dev] how to change "Control" entity's name
> To: bpel-dev@xxxxxxxxxxx
> Message-ID: <147513.92513.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=iso-8859-1
> 
> Hi, there,
> 
> Could anyone let me know how to change "Control" entity's name in the "Palette"? for example, I
> want to change the "Sequence" to "NonParellel". I just want to change the literal showing in the
> designer in order to make the end user easy-to-use. I tried several approaches without any luck.
> For example, I think the class "org.eclipse.bpel.ui.adapters.ActivityAdapter" is the most
> relevant
> one to modify, the original implementation is:
> 
>         public String getLabel(Object object) {
>                 // TODO: Labels
>                 String name = getName(object);
>                 if (name != null)
>                         return name;
>                 return getTypeLabel(object);
>         }
> 
> 
> I changed to (returning "NonParallel" instead of "sequence"):
> 
>         public String getLabel(Object object) {
>                 // TODO: Labels
>                 String name = getName(object);
> 		if (name.equalsIgnoreCase("sequence"))
> 			return "NonParallel";
>                 if (name != null)
>                         return name;
>                 return getTypeLabel(object);
>         }
> 
> However, it didn't work. Plus, sometime the error "java.lang.NullPointerException: Status ERROR:
> org.eclipse.bpel.ui code=0 <no message> java.lang.NullPointerException" will happen. 
> 
> Now I wonder if the label is generated through java reflection, for example, the label name of
> "Sequence" is generated from "Sequence" class. If not, how can I change the "Sequence" literal
> anyway?
> 
> Any hint will be great appreciated!
> Sam
> 
> 
>       ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page. 
> http://www.yahoo.com/r/hs
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 16 Nov 2007 10:33:18 +0100
> From: Simon D Moser <SMOSER@xxxxxxxxxx>
> Subject: Re: [bpel-dev] question about BPEL object model API
> To: "BPEL Designer project developer discussions."
> 	<bpel-dev@xxxxxxxxxxx>
> Cc: bpel-dev@xxxxxxxxxxx, bpel-dev-bounces@xxxxxxxxxxx
> Message-ID:
> 	<OF9DE02AEC.6457030E-ONC1257395.0033E222-C1257395.00347CC2@xxxxxxxxxx>
> Content-Type: text/plain; charset=UTF-8
> 
> Sam,
> 
> of course there is - this is what EMF is about. Once you load the process
> model, you get a process object. On that you can say
> process.getPartnerLinks() to get all Partner Links.
> With the BPELFactory you can create a new PartnerLink object (p1) that you
> then can use in such a way:
> 
> process.getPartnerLinks().add(p1).
> 
> It is as easy as that for all elements in the BPEL model. I suggest that
> you read up on EMF and take a close look at the BPEL model.
> As far as GMF is concerned: By the time the BPEL Designer was started, GMF
> didn't even exists, nor were there rumours about it. Also, I am not sure
> whether GMF would give us the flexibility we need in some areas ...
> 
> Cheers
> Simon
> 
> Simon Moser, M.Eng.
> 
> 
>                                                                           
>  Websphere Integration       Mail:           IBM Deutschland Entwicklung  
>  Developer Development       smoser@xxxxxx.  GmbH                         
>  Team Lead BPEL Editor       com             Vorsitzender des             
>  Dept. 4722, Bldg.           Phone:          Aufsichtsrats: Martin Jetter 
>  71032-01, Room 086          +49-7031-16-43  Geschäftsführung: Herbert    
>  Websphere Solutions and     04              Kircher                      
>  Services                    Fax:            Sitz der Gesellschaft:       
>  IBM Deutschland             +49-7031-16-48  Böblingen                    
>  Entwicklung GmbH            90              Registergericht: Amtsgericht 
>  Schönaicherstr. 220, D –                    Stuttgart, HRB 243294        
>  71032 Boeblingen                                                         
>                                                                           
> 
> 
> 
> 
> 
> 
> 
> 
>                                                                            
>              sam wang                                                      
>              <samwzm@xxxxxxxxx                                             
>              >                                                          To 
>              Sent by:                  bpel-dev@xxxxxxxxxxx                
>              bpel-dev-bounces@                                          cc 
>              eclipse.org                                                   
>                                                                    Subject 
>                                        [bpel-dev] question about BPEL      
>              15.11.2007 20:08          object model API                    
>                                                                            
>                                                                            
>              Please respond to                                             
>               "BPEL Designer                                               
>              project developer                                             
>                discussions."                                               
>              <bpel-dev@eclipse                                             
>                    .org>                                                   
>                                                                            
>                                                                            
> 
> 
> 
> 
> Thanks the replies from Simon and Michael!
> 
> I have reported the bug about jar file's directory, and I feel sorry that
> the current Eclipse BPEL
> didn't use GMF technology.
> 
> Another question, is there BPEL object model API that I can use to
> manipulate BPEL
> programmatically instead of through BPEL designer? I know there is a model
> load method, but I need
> more, for example, adding a new parterlink, assign value, etc.
> 
> 
=== message truncated ===



      ____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ


Back to the top