Please let me know how his can be done in PI
My requirement in pi mapping that I need to do with both the ways with message mapping as well as java udf .
1)Requirement
Column 1 Column 2
Indicator Batch number
P 6C8
R 6C8
P 6Q7
R 6Q7
P 6Q7
R 6Q7
P 6R1
R 6R1
P 6R1
R 6R1
T 10
If the indicator is P or R the Batch Number value should be passed to target side batch number field .Otherwise if it's T the total number of record should be passed to another field "Record_Count" on the target side .
2)Requirement
Column 1
Column 1 Column 2
Indicator Amount
P 50173.44
R 78173.41
P 3500000
R 10000
P 1000
R 1000
P 91000
R 950001
P 91000
R 108069.39
T 607069.45
If the indicator is P or R the Amount value should be passed to target side Amount field if the Record indicator is T
the sum of all the Amount should be passed in Amount amount field
Thanks