Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi every one,
i have a job which is handling xml input and validating based on some conditions and getting output response.
my xml having multiple preference loops and im comparing this with existing pre_lookup table data if data matches the data should save in pre_match output ,if not data should save to pre_notmatch output, but the problem is my job txmlamp checking the 1st loop if its correct saving data in pre_match output and if 2nd loop is wrong its saving data in pre_notmatch output . i want my job should check both loops if both should match then only it should save the data to pre_match else it should save data in pre_notmatch output.
below is my xml input formet
<?xml version="1.0" encoding="UTF-8"?>
<PublishCustAccountMessage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://tuiuk.com/xsd/interface/customer/pubcustaccount/v1">
<CustomerAccount>
<CustomerID>1077563054</CustomerID>
<CustomerAccountID>444</CustomerAccountID>
<Status>Active</Status>
<Preferences>
<Preference>
<CustomerPrefID>1000000172</CustomerPrefID>
<CustomerPrefType>PREFERRED_BOARD_BASIS</CustomerPrefType>
<CustomerPrefValue>SELF CATERING</CustomerPrefValue>
<CustomerPrefValidFrom></CustomerPrefValidFrom>
</Preference>
<Preference>
<CustomerPrefID>1000000177</CustomerPrefID>
<CustomerPrefType>PREFERRED_BOARD_BASIS</CustomerPrefType>
<CustomerPrefValue>ROOM</CustomerPrefValue>
<CustomerPrefValidFrom></CustomerPrefValidFrom>
</Preference>
</Preferences>
</CustomerAccount>
</PublishCustAccountMessage>
and this is my existing pre_lookup table
pref_type pref_value
PREFERRED_BOARD_BASIS ALL INCLUSIVE
PREFERRED_BOARD_BASIS FULL BOARD
PREFERRED_BOARD_BASIS HALF BOARD
PREFERRED_BOARD_BASIS ROOM ONLY
PREFERRED_BOARD_BASIS SELF CATERING
so i am giving wrong input pref_value as ROOM instead of ROOM ONLY, its checking and sending this data to pre_notmatch.
but my requirement is to check input if one loop is wrong either 'CustomerPrefType' or 'CustomerPrefValue' it should send output to pre_notmatch. How can i handle this ? should i give any conditions in txmlMap ??
i have attached my job screenshots ,Thanks in advance.
((Integer)globalMap.get("tLogRow_2_NB_LINE"))>0
((Integer)globalMap.get("tLogRow_2_NB_LINE"))==0