Friday 30 November 2018

Iflow Error in CPI

If you are facing the below issue in CPI without any proper logs, then there is configuration missing in content modifier.

In the earlier version of CPI at the content modifier, we may not provide the expressions like(${in.body}) to bypass the data flow from previous step, but now there is two options available in content modifier body
1. Constant
2. Expression

Do you need to pass the actual data out from content modifier, then Choose Expression - ${in.body}


Error Details

[CAMEL][IFLOW][ERROR] : Integration flow failed. [CAMEL][IFLOW][EXCEPTION] : org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to initialize bean .camelBlueprint.factory.Split_Router

[CAMEL][IFLOW][CAUSE] : Cause: java.lang.IllegalArgumentException: Route Process_78 has no outputs: Route(Process_78)[[From[direct:Process_78]] -> []]


!!! Hope this resolves your issue !!!



Thursday 22 November 2018

How to route to different receiver based on the CSV file

In this blog, we discuss about how to read each line from CSV file and route it depends on the value from first field.

Sample Input data:

1158|Join
1159|Enhanced
1159|IN|980||92|193|GoTest|||20183|||||IND|India CC|5225||||||
1159|END_OF|BEART
1159|BEG|20181003
1158|EN
1159|EN


Based on 1158 and 1159 it needs to be routed.

IFLOW:

For testing purpose, we are passing the input data in content modifier












We are getting the data one by one in a separate mail. The requirement is to send a mail on the combined one. As there is a SAP standard, we can't use Gather after Router. Working on the  resolution.