on 04-27-2016 11:50 AM
Hi,
I am facing an issue on creating a scenario JDBC to JMS.
Scenario:
There are Header and Detail line items in rows that needs to be fetched from JDBC adapter.
Same Source Header Rows to be mapped to Target Header and details should be created under Details (It would be multiple line items)
Facing issue with Below:
While Header Rows is different ,Different Headers should be created and the corresponding Detail line items also should be created under the respective header.
Thanks,
Baskar
Hi Baskar,
Correct me if i am wrong
For example:
Record 1
LINENUMBER A
ITEMID X
Record 2
LINENUMBER A
ITEMID Y
Record 3
LINENUMBER B
ITEMID Z
You should have:
Shipment (header)
(Corresponding with LINENUMBER A)
ShipmentLines
ITEMID X
ITEMID Y
Shipment (header)
(Corresponding with LINENUMBER B)
ShipmentLines
ITEMID Z
If i am not wrong in my supposition you can sort by LINENUMBER and to use splitByValue (value changed) to get the header lines.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You want to group ITEMID based on your LINENUMBER . In that case use formatByExample node function. You need to adjust the context for ITEMID based on LINENUMBER.
formatByValue
Input 1
ITEMID
input 2
LINENUMBER --> removeContext -->splitByValue[value change]
Map the output of formatByExample to ITEMID
Kind Regards,
Sarojkanta Parida
Hello Baskar,
For Header
row -->removeContext --> Shipment
for Detail
direct mapping from source to target will work
Kind Regards,
Sarojkanta Parida
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.