cancel
Showing results for 
Search instead for 
Did you mean: 

Conditions in BPM

Former Member
0 Kudos

Hi Experts,

Scenario : SOAP -> First webservice -> Second Webservice -> Third Webservice

Requirement : If the EmpId from the SOAP client request is 234 then I have to call the first webservice otherwise I have to skip the First webservice from the busiess process.

How to achieve this in BPM?

Please share your suggestions.

Regards

Sara

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

Use the following

1. Receive step (1st webservice)

2. Switch, give condition on EmpId

3. Send for webservice inside switch

4. Other send step outside switch

Regards,

Prateek

Answers (6)

Answers (6)

samiullah_qureshi
Active Contributor
0 Kudos

Hi

You use a switch to call first webservice and leave ur otherwise branch empty. In condtion editor of switch step check your EmpId.

More on switch step-

[http://help.sap.com/saphelp_nw70/helpdata/EN/62/dcef46dae42142911c8f14ca7a7c39/frameset.htm]

So ur over all steps will be

1. Receive Request from SOAP sender using Receive step

2. Call 1st WS using send step in Switch

3. Call 2nd WS using send step

4. Call 3rd WS using send step

Regards

Sami

Reward points if helpful.

former_member556603
Active Contributor
0 Kudos
Former Member
0 Kudos

Quite a few have already posted replies saying "Use Switch step". Does your post add any more value?

Regards,

Jaishankar

Former Member
0 Kudos

Sorry..Jai..was not at my desk. Closed the thread.

vijay_b4
Active Contributor
0 Kudos

Hi Sara,

Yes it is possible, in switch step , use the id as xpath and maitainn the condition.

It will depends upon the message structure , i mean , if the message contains one record per each message then sure on emesage will pass through that switch.

Else if the message is multiline , or holding the no of records then it will not pass.So try to maitain the occurrences to achieve your task

Reward points if this helps

Regards

Pragathi.

aashish_sinha
Active Contributor
0 Kudos

Hi,

Agreed with Prateek and Patric,

You can use both the things in combination or seperately. But you have to use the switch and the put your condition of SOAP client request if it is 234 go ahead with first web service else whatever you wanna do.

Hope this will help you.

Regards

Aashish Sinha

PS : reward points if helpful

Former Member
0 Kudos

Hi ,Sara

1) U can use SWITCH to achieve this.

2) In condition tab u can chose your field containing value 234.

3) check it with constant 234.

Regards,

Rohit

Reward points if helpful.

Former Member
0 Kudos

Hi,

you could use a switch step after SOAP if true you call the first Web service and leave the otherwise branch empty.

1) SOAP

2) switch

2a) true (client request is 234): first Web service

2b) false: no action

3) second Web service

4) third Web service

http://help.sap.com/saphelp_nw04/helpdata/en/6a/db283fd0ca8443e10000000a114084/frameset.htm

Regards

Patrick