cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with the Condition editor EX function

Former Member
0 Kudos

Hi,

In IDOC to file, I need to collect the IDOC based on time.Before collecting I need to check for a particular node presence; only If that node exist it has to collect the IDOC or else it has to trigger an alert from BPM.I have done all these things my problem is with the condition editor.

Inside BPM I have used switch statement to check whether segment "ORDRSP.ORDERS05/IDOC/EIEDP01" exist or not.

In one of the Switch branch condition Editor

-> I have created a condition variable(for example COND_VAR and I have given the Xpath expression(points to the segment ORDRSP.ORDERS05/IDOC/EIEDP01).

-> In the left side section of the condition editor I have mentioned the actual condition

EX(COND_VAR)

Now the problem is even though the condition is false i.e the segment is not there in the input data its going to the true branch.

can anyone tell me how this exist function works.

Regards,

Yuga

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos
EX(COND_VAR)

try this format: EX COND_VAR

I am using this and able to get the desired result....

If there are multiple conditions then (EX COND_VAR)|(etc...etc.....

if i am not wrong a similar condition is visible as comment...when you open the condition editor for the very first time..

you have properly defined the condition variable :)...it does not need any change....

Regards,

Abhishek.

Former Member
0 Kudos

EX function worked with this format: EX COND_VAR.

shabz I tried with that 2 option but it didn't work for me

Thanks a lot

Regards,

Yuga

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hi,

>

> In IDOC to file, I need to collect the IDOC based on time.Before collecting I need to check for a particular node presence; only If that node exist it has to collect the IDOC or else it has to trigger an alert from BPM.I have done all these things my problem is with the condition editor.

>

>

> Inside BPM I have used switch statement to check whether segment "ORDRSP.ORDERS05/IDOC/EIEDP01" exist or not.

>

> In one of the Switch branch condition Editor

> -> I have created a condition variable(for example COND_VAR and I have given the Xpath expression(points to the segment ORDRSP.ORDERS05/IDOC/EIEDP01).

> -> In the left side section of the condition editor I have mentioned the actual condition

> EX(COND_VAR)

>

>

> Now the problem is even though the condition is false i.e the segment is not there in the input data its going to the true branch.

>

> can anyone tell me how this exist function works.

>

>

> Regards,

> Yuga

1. Did you check the multiline option inside the condition editor?

2. also try to edit your condition as /p1:ORDRSP.ORDERS05/IDOC[EIEDP01] EX

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination