Hi All,
Req Details:
File To File Design pattern
File will be picked by PI based on polling config. File will consist of line items. Below is the ex:
MT_Source
Source 0..unbounded
ID 0..1
Flag 0..1
Amount 0..1
Name 0..1
JobType 0..1
MT_Target
Target 0..unbounded
ID 0..1
Flag 0..1
Amount 0..1
Name 0..1
JobType 0..1
Logic: Flag will consist of flag Yes for "Credit" and flag No for "Debit". Based flag value amount is to be calculated. If sum is equal to zero then only target file should be created in target directory.
If the sum is not equal to zero PI should raise exception and raise an alert. The alert should have one line saying sum is not equal to zero.The file should be written to another folder named as ERROR.
What should be the best way to achieve this?
Thanks,
Vertika