cancel
Showing results for 
Search instead for 
Did you mean: 

BPM Switch Condition

Former Member
0 Kudos

Hi Experts,

I have one doubt regarding BPM switch condition.

currently i have scenario like in Switch condition i am sending data for two customers and condition mentioned as1000001or 1000002.

if customer 1000001 comes from ECC then for this customer data is sent if 1000002 comes from ECC then for this customer data will be sent.

but now i want to add one more customer number 1000003 in that condition. can i add like

1000001 or 1000002 or 1000003 in that condition or any other validation is required.

Thanks in Advance

bhaskar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bhaskar,

What I understand from your problem description is that, the switch condition is as;

If the customer number are as 1000001or 1000002, then the data is sent, otherwise some other processing is performed.

And now you need to add the third customer to this condition and make it as 1000001or 1000002 or 1000003. This will work. I dont think you need to have any other additionla checks.

Regards,

Alka.

Former Member
0 Kudos

Hi Alka,

Thanks for your answer. i will check and will reply to u.

thanks a lot,

bhaskar

Former Member
0 Kudos

Hi Alka,

My question is answered.

Thanks,

Srikanth

Answers (1)

Answers (1)

sunil_singh13
Active Contributor
0 Kudos

Hi Bhaskar,

Yes it is possible to give 3 conditions to a switch but this will be nested switch,

take first switch you check if 1000001 is present and in otherwise part of it you again use one more switch in which you have to give other 2 conditions 1000002 and 1000003.

Thanks

Sunil Singh

Former Member
0 Kudos

Hi Sunil.

right now i have for two customers but client needs now for three customers.

how should i write this conditions with or and and statement.

now we have like 1000001 or 1000002.

for three customers how should i write.

we will not get three customers at a time but any one customer will be triggered in ECC side.

can i put the condition in the below way.

1000001 or 1000002 or 1000003

kindly suggest.

thanks

sunil_singh13
Active Contributor
0 Kudos

Hi Bhaskar,

I understand what you want to say but in this case you should have something to be executed (like end the process, send the notification) in case non of these values come in payload.

If it is sure that any one of these values will always come in the payload then you can go for it (using OR in between).

Thanks

Sunil Singh

Former Member
0 Kudos

Hi sunil,

What is u said is exactly correct and the my question is answered.

Thanks,

Bhaskar