cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping help

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shankar ,

F1_2 [EQUALS] Constant(1) > [IF THEN ELSE]> if its true then pass CONSTANT(D)else pass CONSTANT(O)-> F1_2

Chk if F1_2 and constant (1) are equal or not and pass the value to [IF THEN ELSE]. If its equal pass CONSTANT(D)else pass CONSTANT(O). finally map the output of [IF THEN ELSE] to R2.

hope its clear..........

and then map F1_3 to R3 as it will be mapped whatever is the value of F1_2

Also since F1_2 occurence is 1..1 so it will have atleat one value either 1 or 0 so if u chk for one value 1 the other value is auto matically covered bcoz if its not 1 it has to be 0.

Regards,

Rohit

Answers (2)

Answers (2)

Former Member
0 Kudos

Are you sure that only 0 & 1 will be coming in F1_2 ? If yes then you can simply use "If" condition in each of the target fields and achieve this...

Please let me know if you need further pointers..

Former Member
0 Kudos

Hi,

1.<F1_2> -> Fixvalue(1-D;O-O)>R1

2.<F1_2> ->Fixvalues(1-PP;O-CL)>R2

3.<F1_2> -->use if function and then map to R3.

Thanks,

Leela