Skip to Content
A B

Condition Editor

Hello

I have the following xml and require this condition to be given in the condition editor of receiver determination.

But it is not working.

(/podPoc/journey/site/task/@taskName = Asset Returns AND /podPoc/journey/site/task/activity/@activityName EX AND /podPoc/journey/site/task/activity/@number EX )

The XML file below

-<task imageNo="TR010000008739B82581B83B0268C187D9A7EBAA15BD140A1819F7675D" taskEndTime="2016-01-03T02:56:59.827" taskStartTime="2016-01-03T02:56:46.070" taskName="Asset Deliveries">

<activity number="2.000" text="" activityName="BB Basket"/>

</task>

The receiver should be determined if the task name ='Asset Deliveries' and has values in activity number/text/activityname. Sometimes the attribute might not come or be empty.

Let me know whether these can be handled via condition editor else i might need to create enhanced RD via mapping.

Regards

Sam

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 13, 2016 at 11:21 AM

    Hi Sam,

    Try like below.

    Xpath./podPoc/journey/site/task/@taskName = "Asset Returns" AND EXISTS(Xpath./podPoc/journey/site/task/activity/@activityName) AND EXISTS(Xpath./podPoc/journey/site/task/activity/@number)

    Regards,

    Praveen.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Sam,

      If you want to check existence of number and activityName under the specific task then use below condition.

      Just paste the below xpath condition in the box i shown you below.

      /podPoc/journey/site/task[(@taskName="Asset Returns") and (count(activity/@number) > 0) and (count(activity/@activityName) > 0)]

      Use exists operator like below, The condition should be like below.

      It works for me, try your side and let me know.

      Regards,

      Praveen.

      condition.png (20.5 kB)
  • Posted on Jan 15, 2016 at 04:20 PM

    Hello

    It is not working.

    I have decided to handle it via mapping. Still not working via mapping.

    Can someone give me a simple udf to handle this.

    Regards

    Sam

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 17, 2016 at 10:21 AM

    Thanks Praveen

    that worked 😊

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.