cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver determination based on field value from send step in BPM

former_member187447
Participant
0 Kudos

Hi

I have a BPM scenario which has to send the result to 3 different receivers, the first part of the BPM is common for all the 3 steps, at the end of the first part there is a send step in which i have a message structure which has a field value and based on this field value i need to route it to the rest of the BPM into 3 different branches. Can i achieve this receiver determination within BPM, if so how, please suggest.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184789
Active Contributor
0 Kudos

Also for the condition, you can have XPATH since XPATH is supported by switch case of BPM.This is mentioned in one of the threads, which I have given in my previous posts.

former_member187447
Participant
0 Kudos

thanks for the links and your feedback, i am having some trouble configuring the condition in the condition editor, the field that i am interested is in the following XPATH of the IDOC

/DELVRY05/IDOC/E1EDL20/E1EDL24/USR04

In the condition editor should i just put

USR04 = "X" and then give the whole xpath /DELVRY05/IDOC/E1EDL20/E1EDL24/USR04 in biding. but when i put the condition in condition editor  it says "operand USR04 in line 1  column 1 is not defineed".

former_member184789
Active Contributor
0 Kudos

Hi,

You should give as:

USR04=/DELVRY05/IDOC/E1EDL20/E1EDL24/USR04 in biding & in condition as USR04 = "X"

former_member187447
Participant
0 Kudos

Fantastic dude, it works, thank you.

former_member184789
Active Contributor
0 Kudos

you are welcome..

Answers (7)

Answers (7)

former_member187447
Participant
0 Kudos

Thanks to both of you, I appreciate it

former_member184789
Active Contributor
0 Kudos

Hi,

For three branches, you may try as if 'a' then pass to branch1, have system 1 in branch 1otherwise branch 2. In branch 2 have another switch such that if 'b' then system 2 otherwise system 3.

former_member187447
Participant
0 Kudos

Also it seems like i cant use receiver determination step from what both of you are suggesting. But i have to use a switch where should i configure the value for each branch of the switch case.

former_member187447
Participant
0 Kudos

Actually the in my scenario the BPM should dynamically decide which brach to go, like i said it depends on the value of the field. if the filed value is 'a' the BPM should process the first branch, if 'b' process second and so on. At any point of time only one branch should be processed out of the three.

former_member203631
Participant
0 Kudos

Hi,

As per my understanding you are looking to route your flow to respecive branch based on a field value in BPM itself, if my understanding is correct then you need not to go for reciever determination and the same can be achieved via switch step.

former_member187447
Participant
0 Kudos

yes Shiva, I already implemented that. thank You.

former_member184789
Active Contributor
0 Kudos

Hi,

The receiver determination is used in BPM when the receivers are to be determined at runtime eg. during multicasting when you want to send a particular message either one by one or all at one to the receivers. But in your case as you are having three known receivers, you can have three send steps & a switch case as suggested by Udo. Could you please explain if there is any specific reason for which you want to have receiver determination in BPM.

udo_martens
Active Contributor
0 Kudos

Hi,

you can define receivers inside BPM in a receiver determination step. In IB Directory you can determine the receiver with a condition.

But if i understand you right then this is not what you actually need. If you want to continue the BPM in three branches dependend on a certain field value then two combined switch would do the job.

/Udo