Thread: Starting a bpel process after a WebService call


Permlink Replies: 9 - Pages: 1 - Last Post: Apr 14, 2008 11:55 PM Last Post By: Eric Elzinga (I...
user609971

Posts: 63
Registered: 12/11/07
Starting a bpel process after a WebService call
Posted: Apr 10, 2008 11:26 PM
Click to report abuse...   Click to reply to this thread Reply
Hello,

Can we start a bpel after calling a Web Service.
Lets say, i call a webservice and get some output. Now, depending upon the value of the output, i need to call a bpel process. If value of the output of the webservice is 1, i call bpel process 1 and if value of output of the webservice is 2, i need to call bpelprocess2.

How can i achieve this scenario?

Thanks
Nutan
Charles Poulsen

Posts: 73
Registered: 02/06/04
Re: Starting a bpel process after a WebService call
Posted: Apr 10, 2008 11:36 PM   in response to: user609971 in response to: user609971
Click to report abuse...   Click to reply to this thread Reply
This is my understanding of your situation:
You have a program which calls a web service. If the return value is 1, you want to start a BPEL process.

You can call a BPEL process via its web service interface (SOAP), or via the BPEL API's (java). Every BPEL process that you deploy exposes itself as a web service. Not sure which is more applicable to your situation, but yes its possible.
user548266

Posts: 186
Registered: 12/11/06
Re: Starting a bpel process after a WebService call
Posted: Apr 10, 2008 11:53 PM   in response to: user609971 in response to: user609971
Click to report abuse...   Click to reply to this thread Reply
Hi,

Im not sure, but i can give u the flow:

As you have said u have a webservice which gives output 1 or 2......,define a "switch activity" where in u define an "invoke" activity for each specified output(for output 1 you define invoke activity, for output 2 you define one other invoke activity)... and in the invoke activity you call your own .WSDL file..

Regards,
- Sri
Eric Elzinga (I...

Posts: 1,189
Registered: 02/25/03
Re: Starting a bpel process after a WebService call
Posted: Apr 10, 2008 11:58 PM   in response to: user609971 in response to: user609971
Click to report abuse...   Click to reply to this thread Reply
i think you need to give more details about your situation.
You said you're calling a webservice.
From where is it. From an existing webpage, or some other bpel process ?
user609971

Posts: 63
Registered: 12/11/07
Re: Starting a bpel process after a WebService call
Posted: Apr 11, 2008 12:24 AM   in response to: Eric Elzinga (I... in response to: Eric Elzinga (I...
Click to report abuse...   Click to reply to this thread Reply
Hi Eric,

Here is the detail.
I have a UI page which has a button. Onclick of this button, i need to call a Mediator passing some input parameter from the UI . This Mediator will call a webservice passing that input parameter and then on the basis of output returned, will call a bpel process, i.e the output of the web service will be the input of the BPEL process.
Is this scenario feasible? I thought of exposing the Mediator as a service which will first call the webservice and then pass the value of the output returned to a bpel process. But not sure, how to achieve this.

Thanks
Nutan
Eric Elzinga (I...

Posts: 1,189
Registered: 02/25/03
Re: Starting a bpel process after a WebService call
Posted: Apr 11, 2008 1:59 AM   in response to: user609971 in response to: user609971
Click to report abuse...   Click to reply to this thread Reply
Hi Nutan,

Yes this is possible.
You're talking about mediator. You're using the 11g already or just the 10.1.3.3 and using the esb (also called mediator).

esb routingservice -> call webservice -> response send back on the bus -> and route on to the bpel process (in this route you can use filters to either send to bpel1 or bpel2)

for the flow of calling the webservice and use the response to route to some other bpel you need to use "Forward and Route Response" (http://www.oracle.com/technology/products/integration/esb/index.html). It's an example of Oracle.

Goodluck :)
user609971

Posts: 63
Registered: 12/11/07
Re: Starting a bpel process after a WebService call
Posted: Apr 11, 2008 3:06 AM   in response to: Eric Elzinga (I... in response to: Eric Elzinga (I...
Click to report abuse...   Click to reply to this thread Reply
Thanks a lot Eric.
I am using 11g. Hence, i am using Mediator component.
How to use "Forward and Route" Response here. Could you please explain it in a bit detail.

Regards
Nutan
Eric Elzinga (I...

Posts: 1,189
Registered: 02/25/03
Re: Starting a bpel process after a WebService call
Posted: Apr 14, 2008 3:11 AM   in response to: user609971 in response to: user609971
Click to report abuse...   Click to reply to this thread Reply
Hi Nutan,

I still haven't had much time to play with the 11g, but i made a little test, and in it i do pretty much the same as the example for the 10g.

I could mail you the dummy project from 11g?
user609971

Posts: 63
Registered: 12/11/07
Re: Starting a bpel process after a WebService call
Posted: Apr 14, 2008 9:57 PM   in response to: Eric Elzinga (I... in response to: Eric Elzinga (I...
Click to report abuse...   Click to reply to this thread Reply
Hi Eric,

Thanks a ton for your precious time.

It will be really a great help if you could mail me the dummy project on 11 g.
My email id is nutan.kumari@oracle.com.

Thanks again
Nutan
Eric Elzinga (I...

Posts: 1,189
Registered: 02/25/03
Re: Starting a bpel process after a WebService call
Posted: Apr 14, 2008 11:55 PM   in response to: user609971 in response to: user609971
Click to report abuse...   Click to reply to this thread Reply
i emailed you.

I just noticed your @oracle.com address.

Shouldn't you guys help us instead of us helping you :) jk
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums