how to generate BPEL process without GUI designer

View: New views
4 Messages — Rating Filter:   Alert me  

how to generate BPEL process without GUI designer

by sam wang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, there,

I am new to NetBeans. I am very impressive for the BPEL editor provided by NB6.0. It's intuitive
and the interface is very nice. I have a question about how to generate BPEL process by NB6.0's
BPEL model programmatically, instead of through the GUI. Is there any example code or tutorials
about this? Is there any BPEL process API that can be invoked by Java program to generate BPEL
process?

Any hint will be greatly appreciated!
Sam


      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: how to generate BPEL process without GUI designer

by bhardwaj_rajesh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sam,
Were you able to find some way to generate bpel programatically. I am having the same issue,
if you have any information,please share.
regards
Rajesh
sam wang-2 wrote:
Hi, there,

I am new to NetBeans. I am very impressive for the BPEL editor provided by NB6.0. It's intuitive
and the interface is very nice. I have a question about how to generate BPEL process by NB6.0's
BPEL model programmatically, instead of through the GUI. Is there any example code or tutorials
about this? Is there any BPEL process API that can be invoked by Java program to generate BPEL
process?

Any hint will be greatly appreciated!
Sam


      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

Re: how to generate BPEL process without GUI designer

by Brynjar Glesnes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the BPEL editor of the NetBeans 6.1 bundled with open-esb or GlassFishESB there is an excellent BPEL source editor. When you create or open a BPEL file there is a Source view as well as the Design view. The source view has the syntax support and code completion you would expect of a programming editor.

If you don't know the BPEL language a good strategy might be to study the constructs created in the design view.

Regards
Brynjar Glesnes

2008/12/3 bhardwaj_rajesh <bhardwaj_rajesh@...>

Sam,
Were you able to find some way to generate bpel programatically. I am having
the same issue,
if you have any information,please share.
regards
Rajesh

sam wang-2 wrote:
>
> Hi, there,
>
> I am new to NetBeans. I am very impressive for the BPEL editor provided by
> NB6.0. It's intuitive
> and the interface is very nice. I have a question about how to generate
> BPEL process by NB6.0's
> BPEL model programmatically, instead of through the GUI. Is there any
> example code or tutorials
> about this? Is there any BPEL process API that can be invoked by Java
> program to generate BPEL
> process?
>
> Any hint will be greatly appreciated!
> Sam
>
>
>
> ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
>

--
View this message in context: http://www.nabble.com/how-to-generate-BPEL-process-without-GUI-designer-tp15886752p20806066.html
Sent from the NetBeans - EntPack mailing list archive at Nabble.com.



Re: how to generate BPEL process without GUI designer

by bhardwaj_rajesh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
I have created the bpelmodel by -
                 File bpelFile = new File("C:/temp_videos/echo_1.bpel");
                 URI bpelURI = new URI("file:///C:/temp_videos/echo_1.bpel");
                 FileInputStream fis = new FileInputStream(bpelFile);
                 javax.swing.text.Document myDocument=myloadSwingDocument(fis);
                 Lookup lookup = Lookups.fixed(new Object[]{bpelFile, myDocument,
                                 myCatalogModel.getDefault(),});
                 ModelSource source = new ModelSource(lookup,true);

                BpelModelFactory factory =
                Lookup.getDefault().lookup(BpelModelFactory.class);
                BpelModel model = factory.getModel (source);
                Process myProcess = model.getProcess();
               
                 myProcess.setName("NewProcess") ;


How can I save the modified bpelmodel to the file. Any suggestion is welcomed.
regards
Rajesh