Skip to Content
0
Former Member
Apr 21, 2011 at 04:02 AM

Mapping help

17 Views

Can some one help me for implement this logic using graphical functions:

Source Input coming like this(randomly):

-


F1,MM,O,FEMALE

F1,CC,1,MALE

or

F1,MM,1,MALE

F1,CC,O,FEMALE

Source structure:

-


<Root1> 0:u

F1_1 1:1

F1_2 1:1

F1_3 1:1

</Root1>

Target structure:

-


<Target>

R1 0:1

R2 0:1

R3 0:1

</Target>

Field values behaviour:

-


F1_1 = MM & CC

F1_2 = O & 1

F1_3 = FEMALE & MALE

I need to check logic based on below conditions:

<F1_2> == '1' then send constant value "D" to target field 'R1' && send constant value "PP" to field 'R2' && <F1_3> map into <R3>

and

<F1_2> == 'O' then send constant value "O" to target field 'R1' && send constant value "CL" to field 'R2' && <F1_3> map into <R3>

I need output like this:

-


D,PP, MALE

or

O,CL, FEMALE

Thanks,

Shankar