cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional Receiver

Former Member
0 Kudos

Hi,

I have a Receiver Determination with two Receivers and I'm having problems with the conditions. I need to send the message to the first receiver if the first character of the Partner Number is an 8. Otherwise I need to send the message to the second receiver.

With the first condition I've used the Contains Pattern operator (8+++). However, I'm not sure how I specify the second condition. What I'm attempting to do is check to see if the first character is anything BUT an 8 but I don't believe I can use pattern matching with the not equals operator.

Can anyone offer some advice?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

use startsWith in combination with boolean if function.

if--> startsWith (<string >, "8")

else -->

Former Member
0 Kudos

Hi,

I'm not sure how I can use an If, then statement in a condition like this. Can you explain?

Former Member
0 Kudos

Hi,

Assume the following is source xml:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:root xmlns:ns0="http://dummy.dk">

<str>applicon</str>

</ns0:root>

In a condition in a receiver determination I could then use the following expression for branch IF:

(/p1:root/str[starts-with(.,'8')] EX )

and the following for branch OTHERWISE:

(/p1:root/str[not(starts-with(.,'8'))] EX )

Best Regards,

Daniel

Edited by: Daniel Hans Engsig-Karup on Oct 29, 2008 10:40 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi...

You can use "StartWith" function in Text Function in mapping.

This function will,

Tests whether string start with specified prefix.

Regards,

Leela

Former Member
0 Kudos

Daniel,

Thanks very much. Works like a dream.