on 04-16-2013 11:55 PM
Hi <Removed by Moderator>,
Can you please let me know how to write a condition logic in message mapping?
I need to write a logic to exclude entering into message mapping if one of the fields in message mapping contains
a string called "TEST". Which means i should not enter into the message mapping if the field has value "TEST" in one of the fields
from message mapping; Hope you got my point. Any help appreciated? Thank you.
Regards
Rupa
Message was edited by: Prateek Raj Srivastava
You can write condition very similar to the following blog...fig 6 or fig 7. You need to use constant function and if else condition to compare the value of the field whether it is TEST or not and if so map to the target structure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rupa,
I believe you want to create top target node if a particular source field contains a particular String say TEST. You can have a UDF with execution all values of context:
int a = var1[0].indexOf("TEST");
if (a !=-1)
{
result.addValue("");
}
else
{
result.addSuppress();
}
Here provide the input to the UDF as the field for which you want to test if it contains that String. Map the output of this UDF to the top target node.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.