Skip to Content
avatar image
Former Member

Problem with the Condition editor EX function

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 05, 2009 at 07:33 AM
    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • May 05, 2009 at 07:29 AM

    >

    > 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

    Add comment
    10|10000 characters needed characters exceeded