MWCONFIG_INITDB_ITM_01.sql 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. INSERT INTO MWCONFIG.ADAPTOR (ID, DESCRIPTION, ASYNCHRONOUS, MODIFIED_BY, TIMESTAMP)
  2. VALUES
  3. ('itm-10363', 'ITM Network Adaptor', 1, CURRENT USER, CURRENT TIMESTAMP),
  4. ('itm-10366', 'ITM OnUs Adaptor', 1, CURRENT USER, CURRENT TIMESTAMP),
  5. ('core-itm', 'Core Adaptor from ITM channel', 0, CURRENT USER, CURRENT TIMESTAMP);
  6. INSERT INTO MWCONFIG.DTREE(GROUP, PATH, VALUE, MODULE, MODIFIED_BY, TIMESTAMP)
  7. VALUES
  8. ('ITM-CODE', '0200', '0200.${msg.processingCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  9. ('ITM-CODE', '0210', '0210.${msg.processingCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  10. ('ITM-CODE', '0220', '0220.${msg.processingCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  11. ('ITM-CODE', '0230', '0230.${msg.processingCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  12. ('ITM-CODE', '0400', '0400.${msg.processingCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  13. ('ITM-CODE', '0401', '0401.${msg.processingCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  14. ('ITM-CODE', '0410', '0410.${msg.processingCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  15. ('ITM-CODE', '0411', '0411.${msg.processingCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  16. ('ITM-CODE', '0420', '0420.${msg.processingCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  17. ('ITM-CODE', '0430', '0430.${msg.processingCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  18. ('ITM-CODE', '0800', '0800.${msg.networkManagementInformationCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  19. ('ITM-CODE', '0810', '0810.${msg.networkManagementInformationCode?.padLeft(6, "0")}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  20. ('ITM-CODE', '0200.201000', '0200.201000.${msg.reservedPrivate2.substring(0, 6)}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  21. ('ITM-CODE', '0200.202000', '0200.202000.${msg.reservedPrivate2.substring(0, 6)}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  22. ('ITM-CODE', '0210.201000', '0210.201000.${msg.reservedPrivate2.substring(0, 6)}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  23. ('ITM-CODE', '0210.202000', '0210.202000.${msg.reservedPrivate2.substring(0, 6)}', '[itm]', CURRENT USER, CURRENT TIMESTAMP),
  24. ('ITM-CODE', '0200.235000', '0200.230000.${msg.reservedPrivate2.substring(0, 6)}', '[itm]', CURRENT USER, CURRENT TIMESTAMP);
  25. INSERT INTO MWCONFIG.CODEX (ID, XML, MODIFIED_BY, TIMESTAMP)
  26. VALUES ('iso-8583-itm', '<codex id="iso-8583-itm" escape="true">
  27. <field id="packetLength" type="groupLengthBinary" decimal-format="binary" length="2" />
  28. <field id="messageType" type="string" length="4" padding-mode="right" padding-char=" " />
  29. <field id="bitmap" type="bitmap">
  30. <field id="primaryAccountNumber" bit="2" type="string" length="19" format="llvar" />
  31. <field id="processingCode" bit="3" type="string" length="6" />
  32. <field id="amountTransaction" bit="4" type="string" length="12" padding-mode="left" padding-char="0" />
  33. <field id="amountSettlement" bit="5" type="string" length="12" padding-mode="left" padding-char="0" />
  34. <field id="amountCardholderBilling" bit="6" type="string" length="12" padding-mode="left" padding-char="0" />
  35. <field id="transmissionDateTime" bit="7" type="string" length="10" />
  36. <field id="amountCardholderBillingFee" bit="8" type="string" length="8" padding-mode="left" padding-char="0" />
  37. <field id="conversionRateSettlement" bit="9" type="string" length="8" padding-mode="left" padding-char="0" />
  38. <field id="conversionRateCardholderBilling" bit="10" type="string" length="8" padding-mode="left" padding-char="0" />
  39. <field id="systemsTraceAuditNumber" bit="11" type="string" length="6" />
  40. <field id="timeLocalTransaction" bit="12" type="string" length="6" />
  41. <field id="dateLocalTransaction" bit="13" type="string" length="4" />
  42. <field id="dateExpiration" bit="14" type="string" length="4" />
  43. <field id="dateSettlement" bit="15" type="string" length="4" />
  44. <field id="dateConversion" bit="16" type="string" length="4" />
  45. <field id="dateCapture" bit="17" type="string" length="4" />
  46. <field id="merchantType" bit="18" type="string" length="4" padding-mode="left" padding-char="0" />
  47. <field id="acquiringInstitutionCountryCode" bit="19" type="string" length="3" padding-mode="left" padding-char="0" />
  48. <field id="panExtendedCountryCode" bit="20" type="string" length="3" padding-mode="left" padding-char="0" />
  49. <field id="forwardingInstitutionCountryCode" bit="21" type="string" length="3" padding-mode="left" padding-char="0" />
  50. <field id="pointOfServiceEntryMode" bit="22" type="string" length="3" padding-mode="left" padding-char="0" />
  51. <field id="applicationPanNumber" bit="23" type="string" length="3" padding-mode="left" padding-char="0" />
  52. <field id="networkInternationalIdentifier" bit="24" type="string" length="3" padding-mode="left" padding-char="0" />
  53. <field id="pointOfServiceConditionCode" bit="25" type="string" length="2" padding-mode="left" padding-char="0" />
  54. <field id="pointOfServiceCaptureCode" bit="26" type="string" length="2" padding-mode="left" padding-char="0" />
  55. <field id="authorisingIdentificationResponseLength" bit="27" type="string" length="1" padding-mode="left" padding-char="0" />
  56. <field id="amountTransactionFee" bit="28" type="string" length="9" padding-mode="left" padding-char="0" />
  57. <field id="amountSettlementFee" bit="29" type="string" length="9" padding-mode="left" padding-char="0" />
  58. <field id="amountTransactionProcessingFee" bit="30" type="string" length="9" padding-mode="left" padding-char="0" />
  59. <field id="amountSettlementProcessingFee" bit="31" type="string" length="9" padding-mode="left" padding-char="0" />
  60. <field id="acquiringInstitutionIdentificationCode" bit="32" type="string" length="11" format="llvar" />
  61. <field id="forwardingInstitutionIdentificationCode" bit="33" type="string" length="11" format="llvar" />
  62. <field id="primaryAccountNumberExtended" bit="34" type="string" length="28" format="llvar" />
  63. <field id="track2Data" bit="35" type="string" length="37" format="llvar" />
  64. <field id="track3Data" bit="36" type="string" length="104" format="lllvar" />
  65. <field id="retrievalReferenceNumber" bit="37" type="string" length="12" />
  66. <field id="authorisationIdentificationResponse" bit="38" type="string" length="6" />
  67. <field id="responseCode" bit="39" type="string" length="2" padding-mode="left" />
  68. <field id="serviceRestrictionCode" bit="40" type="string" length="3" />
  69. <field id="cardAcceptorTerminalIdentification" bit="41" type="string" length="16" />
  70. <field id="cardAcceptorIdentificationCode" bit="42" type="string" length="15" />
  71. <field id="cardAcceptorName" bit="43" type="string" length="40" />
  72. <field id="additionalResponseData" bit="44" type="string" length="25" format="llvar" />
  73. <field id="track1Data" bit="45" type="string" length="76" format="llvar" />
  74. <field id="additionalDataIso" bit="46" type="string" length="999" format="lllvar" />
  75. <field id="additionalDataNational" bit="47" type="string" length="999" format="lllvar" />
  76. <field id="additionalDataPrivate" bit="48" type="string" length="999" format="lllvar" />
  77. <field id="currencyCodeTransaction" bit="49" type="string" length="3" />
  78. <field id="currencyCodeSettlement" bit="50" type="string" length="3" />
  79. <field id="currencyCodeCardholderBilling" bit="51" type="string" length="3" />
  80. <field id="personalIdentificationNumberData" bit="52" type="string" length="16" />
  81. <field id="securityRelatedControlInformation" bit="53" type="string" length="18" padding-mode="left" padding-char="0" />
  82. <field id="additionalAmounts" bit="54" type="string" length="999" format="lllvar" />
  83. <field id="reservedIso1" bit="55" type="string" length="999" format="lllvar" />
  84. <field id="reservedIso2" bit="56" type="string" length="999" format="lllvar" />
  85. <field id="reservedNational1" bit="57" type="string" length="999" format="lllvar" />
  86. <field id="reservedNational2" bit="58" type="string" length="999" format="lllvar" />
  87. <field id="reservedNational3" bit="59" type="string" length="999" format="lllvar" />
  88. <field id="reasonCode" bit="60" type="string" length="999" format="lllvar" />
  89. <field id="reservedPrivate1" bit="61" type="string" length="999" format="lllvar" />
  90. <field id="reservedPrivate2" bit="62" type="string" length="999" format="lllvar" />
  91. <field id="reservedPrivate3" bit="63" type="string" length="999" format="lllvar" />
  92. <field id="messageAuthenticationCode" bit="64" type="string" length="16" />
  93. <field id="bitMapTertiary" bit="65" type="string" length="16" />
  94. <field id="settlementCode" bit="66" type="string" length="1" padding-mode="left" padding-char="0" />
  95. <field id="extendedPaymentCode" bit="67" type="string" length="2" padding-mode="left" padding-char="0" />
  96. <field id="receivingInstitutionCountryCode" bit="68" type="string" length="3" />
  97. <field id="settlementInstitutionCountyCode" bit="69" type="string" length="3" />
  98. <field id="networkManagementInformationCode" bit="70" type="string" length="3" />
  99. <field id="messageNumber" bit="71" type="string" length="4" padding-mode="left" padding-char="0" />
  100. <field id="messageNumberLast" bit="72" type="string" length="4" padding-mode="left" padding-char="0" />
  101. <field id="dateAction" bit="73" type="string" length="6" />
  102. <field id="creditsNumber" bit="74" type="string" length="10" padding-mode="left" padding-char="0" />
  103. <field id="creditsReversalNumber" bit="75" type="string" length="10" padding-mode="left" padding-char="0" />
  104. <field id="debitsNumber" bit="76" type="string" length="10" padding-mode="left" padding-char="0" />
  105. <field id="debitsReversalNumber" bit="77" type="string" length="10" padding-mode="left" padding-char="0" />
  106. <field id="transferNumber" bit="78" type="string" length="10" padding-mode="left" padding-char="0" />
  107. <field id="transferReversalNumber" bit="79" type="string" length="10" padding-mode="left" padding-char="0" />
  108. <field id="inquiriesNumber" bit="80" type="string" length="10" padding-mode="left" padding-char="0" />
  109. <field id="authorisationsNumber" bit="81" type="string" length="10" padding-mode="left" padding-char="0" />
  110. <field id="creditsProcesssingFeeAmount" bit="82" type="string" length="14" padding-mode="left" padding-char="0" />
  111. <field id="creditsTransactionFeeAmount" bit="83" type="string" length="14" padding-mode="left" padding-char="0" />
  112. <field id="debitsProcessingFeeAmount" bit="84" type="string" length="14" padding-mode="left" padding-char="0" />
  113. <field id="debitsTransactionFeeAmount" bit="85" type="string" length="14" padding-mode="left" padding-char="0" />
  114. <field id="creditsAmount" bit="86" type="string" length="15" padding-mode="left" padding-char="0" />
  115. <field id="creditsReversalAmount" bit="87" type="string" length="15" padding-mode="left" padding-char="0" />
  116. <field id="debitsAmount" bit="88" type="string" length="15" padding-mode="left" padding-char="0" />
  117. <field id="debitsReversalAmount" bit="89" type="string" length="15" padding-mode="left" padding-char="0" />
  118. <field id="originalDataElements" bit="90" type="string" length="42" padding-mode="left" />
  119. <field id="fileUpdateCode" bit="91" type="string" length="1" />
  120. <field id="fileSecurityCode" bit="92" type="string" length="2" padding-mode="left" padding-char="0" />
  121. <field id="responseIndicator" bit="93" type="string" length="5" padding-mode="left" padding-char="0" />
  122. <field id="serviceIndicator" bit="94" type="string" length="7" />
  123. <field id="replacementAmounts" bit="95" type="string" length="42" />
  124. <field id="messageSecurityCode" bit="96" type="string" length="8" />
  125. <field id="amountNetSettlement" bit="97" type="string" length="16" padding-mode="left" padding-char="0" />
  126. <field id="payee" bit="98" type="string" length="25" />
  127. <field id="settlementInstitutionIdentificationCode" bit="99" type="string" length="11" format="llvar" />
  128. <field id="receivingInstitutionIdentificationCode" bit="100" type="string" length="11" format="llvar" />
  129. <field id="slipNumber" bit="101" type="string" length="11" format="llvar" />
  130. <field id="fromAccount" bit="102" type="string" length="28" format="llvar" />
  131. <field id="toAccount" bit="103" type="string" length="28" format="llvar" />
  132. <field id="transactionDescription" bit="104" type="string" length="100" format="lllvar" />
  133. <field id="reservedForIsoUse1" bit="105" type="string" length="999" format="lllvar" />
  134. <field id="reservedForIsoUse2" bit="106" type="string" length="999" format="lllvar" />
  135. <field id="reservedForIsoUse3" bit="107" type="string" length="999" format="lllvar" />
  136. <field id="reservedForIsoUse4" bit="108" type="string" length="999" format="lllvar" />
  137. <field id="reservedForIsoUse5" bit="109" type="string" length="999" format="lllvar" />
  138. <field id="reservedForIsoUse6" bit="110" type="string" length="999" format="lllvar" />
  139. <field id="reservedForIsoUse7" bit="111" type="string" length="999" format="lllvar" />
  140. <field id="reservedForNationalUse" bit="112" type="string" length="999" format="lllvar" />
  141. <field id="authorisingAgentInstitutionIdCode" bit="113" type="string" length="11" format="llvar" />
  142. <field id="reservedForNationalUse1" bit="114" type="string" length="999" format="lllvar" />
  143. <field id="reservedForNationalUse2" bit="115" type="string" length="999" format="lllvar" />
  144. <field id="reservedForNationalUse3" bit="116" type="string" length="999" format="lllvar" />
  145. <field id="reservedForNationalUse4" bit="117" type="string" length="999" format="lllvar" />
  146. <field id="reservedForNationalUse5" bit="118" type="string" length="999" format="lllvar" />
  147. <field id="reservedForNationalUse6" bit="119" type="string" length="999" format="lllvar" />
  148. <field id="reservedForPrivateUse1" bit="120" type="string" length="999" format="lllvar" />
  149. <field id="reservedForPrivateUse2" bit="121" type="string" length="999" format="lllvar" />
  150. <field id="reservedForPrivateUse3" bit="122" type="string" length="999" format="lllvar" />
  151. <field id="reservedForPrivateUse4" bit="123" type="string" length="999" format="lllvar" />
  152. <field id="infoText" bit="124" type="string" length="255" format="lllvar" />
  153. <field id="networkManagementInformation" bit="125" type="string" length="50" format="lllvar" />
  154. <field id="issuerTraceId" bit="126" type="string" length="6" format="lllvar" />
  155. <field id="reservedForPrivateUse" bit="127" type="string" length="11" format="lllvar" />
  156. <field id="messageAuthenticationCode2" bit="128" type="string" length="16" />
  157. </field>
  158. <field id="!type" type="script" encode="true">iso-8583-itm</field>
  159. <field id="!mid" type="script" encode="true">${msg.transmissionDateTime}.${msg.systemsTraceAuditNumber}</field>
  160. <field id="!code" type="script" encode="true">${dtree("ITM-CODE", "messageType")}</field>
  161. </codex>', CURRENT USER, CURRENT TIMESTAMP);
  162. INSERT INTO MWCONFIG.ADAPTOR_CODEX (ADAPTOR_ID, ID, CODEX_ID)
  163. VALUES
  164. ('itm-10363', 'incoming','iso-8583-itm'),
  165. ('itm-10363', 'outgoing','iso-8583-itm'),
  166. ('itm-10366', 'incoming','iso-8583-itm'),
  167. ('itm-10366', 'outgoing','iso-8583-itm'),
  168. ('core-itm', 'incoming', 'dsp-response'),
  169. ('core-itm', 'outgoing', 'dsp');
  170. INSERT INTO MWCONFIG.ADAPTOR_PARAM (ADAPTOR_ID, NAME, VALUE)
  171. VALUES
  172. ('itm-10363', 'maxConnection', '1'),
  173. ('itm-10366', 'maxConnection', '1'),
  174. ('core-itm', 'timeout', '40000'),
  175. ('core-itm', 'closeOnReply', 'true'),
  176. ('core-itm', 'maxConnection', '50');
  177. INSERT INTO MWCONFIG.SERVER_PORT (ADAPTOR_ID, PORT, SERVER, GROUP)
  178. VALUES
  179. ('itm-10363', 10363, 'server-1', 'itm'),
  180. ('itm-10366', 10366, 'server-1', 'itm');
  181. INSERT INTO MWCONFIG.CLIENT (ADAPTOR_ID, IDLE_WAIT, KEEP_CONN, NODE)
  182. VALUES ('core-itm', 30000, 0, 'core-client');
  183. INSERT INTO MWCONFIG.CLIENT_TARGET (CLIENT_ID, ID, HOST, SEQ)
  184. VALUES ('core-itm', 'core-itm', 'BTNCOREKONVEN:13000', 1);
  185. INSERT INTO MWCONFIG.DBCONN(ID, DRIVER, URL, USERNAME, PASSWORD, SCHEMA, MODIFIED_BY, TIMESTAMP)
  186. VALUES
  187. ('mwlog', 'com.ibm.db2.jcc.DB2Driver', 'jdbc:db2://btnmwlog:50000/MWLOG', 'db2inst1', 'wajFMo2HsNWsRQcLal8Y47jzNMHI+oAu8ywJwIfL9cA=', 'MWLOG', CURRENT USER, CURRENT TIMESTAMP),
  188. ('CORE_KONVEN_DSP', 'com.ibm.as400.access.AS400JDBCDriver', 'jdbc:as400://BTNCOREKONVEN;prompt=false', 'RPTSPP', 'SmDNFJ5hiv3cLh1UQnV6bw==', 'P', CURRENT USER, CURRENT TIMESTAMP);
  189. INSERT INTO MWCONFIG.PARSER(ID, MODIFIED_BY, TIMESTAMP)
  190. VALUES
  191. ('parser-1', CURRENT USER, CURRENT TIMESTAMP);
  192. INSERT INTO MWCONFIG.ROUTING_TABLE (CODE_START, CODE_END, CHANNEL, START_DATE, QUEUE, STATUS, CREATE_BY, CREATE_DATE)
  193. VALUES
  194. ('0800.000000', '0800.999999', 'itm', CURRENT TIMESTAMP, 'ITM_NETWORK_IN', 'ACTIVE', CURRENT USER, CURRENT TIMESTAMP),
  195. ('*', '*', 'itm', CURRENT TIMESTAMP, 'ITM_IN', 'ACTIVE', CURRENT USER, CURRENT TIMESTAMP);
  196. INSERT INTO MWCONFIG.DEV_TELLER_MAP (GROUP, DEVICE_ID, DEVICE_NAME, TERMINAL_ID, TERMINAL_IP, TELLER_ID, CTRL_UNIT_ID, TIMESTAMP, MODIFIED_BY)
  197. VALUES
  198. ('itm', '20004711', '', '20004711', '10.254.47.34', '9904711', 'C47', CURRENT TIMESTAMP, CURRENT USER);
  199. INSERT INTO MWCONFIG.ERROR_MAP (GROUP, ORIGINAL, TARGET, DETAIL, MODIFIED_BY, TIMESTAMP)
  200. VALUES
  201. ('core-itm', '996', '81', 'Failed to connect to core', CURRENT USER, CURRENT TIMESTAMP);
  202. INSERT INTO MWCONFIG.PARAM_MAP (GROUP, NAME, VALUE, TIMESTAMP, MODIFIED_BY)
  203. VALUES
  204. ('core-response-ok', 'AXISSYSTEMSDNBHD.0000005001', 'F1', CURRENT TIMESTAMP, CURRENT USER),
  205. ('core-response-ok', 'AXISSYSTEMSDNBHD.0000005002', 'F1', CURRENT TIMESTAMP, CURRENT USER),
  206. ('error-f2', 'confail', '996', CURRENT TIMESTAMP, CURRENT USER),
  207. ('itm-konven-code', '0200.201000.001001', '5001', CURRENT TIMESTAMP, CURRENT USER),
  208. ('itm-konven-code', '0200.202000.001001', '5002', CURRENT TIMESTAMP, CURRENT USER),
  209. ('time-check', 'time','15000', CURRENT TIMESTAMP, CURRENT USER);
  210. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('itm-network-res', NULL, CURRENT USER, CURRENT TIMESTAMP);
  211. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID)
  212. VALUES
  213. ('itm-network-res', 1, '/data', '/data', NULL, NULL),
  214. ('itm-network-res', 2, '/data/body', '/data/body', NULL, NULL);
  215. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT)
  216. VALUES
  217. ('itm-network-res', 1, '@', 'copyMessage();'),
  218. ('itm-network-res', 1, 'connid', '${null}'),
  219. ('itm-network-res', 1, 'mid', '${null}'),
  220. ('itm-network-res', 1, 'nolog', 'true'),
  221. ('itm-network-res', 1, 'sid', '${null}'),
  222. ('itm-network-res', 2, 'messageType', '${msg.messageType.''!value''.substring(0,2).concat("10")}'),
  223. ('itm-network-res', 2, 'responseCode', '00');
  224. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('router-change-group', NULL, CURRENT USER, CURRENT TIMESTAMP);
  225. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID) VALUES ('router-change-group', 1, '/data', '/data', NULL, NULL);
  226. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  227. VALUES ('router-change-group', 1, '@', 'copyMessage();', 10),
  228. ('router-change-group', 1, 'groupTemp', '${getParamValue("group-change",head.group."!value"+"."+(head.body.reservedPrivate2?."!value"!=null?head.body.reservedPrivate2."!value".padRight(3,"0").substring(0,3):"000"), getParamValue("group-change",head.group?."!value"+"."+(head.body.reservedPrivate2?."!value"!=null?head.body.reservedPrivate2."!value".padRight(9,"0").substring(6,9):"000"), head.group."!value"))}', 10),
  229. ('router-change-group', 1, 'groupCheckCode', '${getParamValue("group-check-code", head.group."!value"+"."+head.body.messageType."!value"+"."+(head.body.processingCode?."!value"==null?"":head.body.processingCode."!value".substring(0,2)), "false")}', 20),
  230. ('router-change-group', 1, 'groupCore', '${getParamValue("group-core",tar.groupTemp."!value", head.group."!value")}', 25),
  231. ('router-change-group', 1, 'group', '${tar.groupCheckCode."!value"=="true"?(head.code."!value".toLowerCase().contains(tar.groupCore."!value".toLowerCase())?tar.groupTemp:head.group):tar.groupTemp."!value"}', 30),
  232. ('router-change-group', 1, 'oldgroup', '${head.group."!value"}', NULL);
  233. INSERT INTO MWCONFIG.MAPPING(ID, DESCRIPTION, MODULE, MODIFIED_BY, TIMESTAMP) VALUES('time-request-check', NULL, NULL, CURRENT USER, CURRENT TIMESTAMP);
  234. INSERT INTO MWCONFIG.MAPPING_GROUP(MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID)
  235. VALUES ('time-request-check', 1, '/data', '/data', NULL, NULL),
  236. ('time-request-check', 2, '/data', '/data', NULL, NULL);
  237. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE(MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  238. VALUES ('time-request-check', 1, '@', 'copyMessage();', 1),
  239. ('time-request-check', 1, 'time_param', '${getParamValue("time-check","time","30000")}', 2),
  240. ('time-request-check', 1, 'current_timestamp', '${java.util.Calendar.getInstance().getTimeInMillis()}', 3),
  241. ('time-request-check', 2, 'time_total', '${tar.ttl == null ? new Long(tar.time_param."!value")+new Long(tar.reqtimestamp."!value") : new Integer(tar.ttl."!value") > new Integer("0") ? new Long(tar.ttl."!value")+new Long(tar.reqtimestamp."!value") : new Long(tar.reqtimestamp."!value")}', 1);
  242. INSERT INTO MWCONFIG.MAPPING(ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('dsp', NULL, CURRENT USER, CURRENT TIMESTAMP);
  243. INSERT INTO MWCONFIG.MAPPING_GROUP(MAPPING_ID, ID, SOURCE, TARGET) VALUES ('dsp', 1, '/data/body', '/data/body');
  244. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE(MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT)
  245. VALUES ('dsp', 1, '!code', '${head.code}'),
  246. ('dsp', 1, '!connid', '${head.connid}'),
  247. ('dsp', 1, '!CorrelId', '${head.CorrelId}'),
  248. ('dsp', 1, '!destination', '${head.source}'),
  249. ('dsp', 1, '!dir', '${head.dir}'),
  250. ('dsp', 1, '!group', '${head.group}'),
  251. ('dsp', 1, '!mid', '${head.mid}'),
  252. ('dsp', 1, '!remaining', 'AAA='),
  253. ('dsp', 1, '!remainingPos', '1268'),
  254. ('dsp', 1, '!reqtimestamp', '${head.reqtimestamp}'),
  255. ('dsp', 1, '!sid', '${head.sid}'),
  256. ('dsp', 1, '!source', '${head.source}'),
  257. ('dsp', 1, '!timestamp', '${head.timestamp}'),
  258. ('dsp', 1, '!type', '${head.type}');
  259. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('req-core.itm', '[izzit]', CURRENT USER, CURRENT TIMESTAMP);
  260. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID) VALUES ('req-core.itm', 1, '/data/body', '/data/body', 'dsp', 1);
  261. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  262. VALUES
  263. ('req-core.itm', 1, 'tellerComplete', '${getParamValue("device_teller_map", head.group."!value".trim() + "_" + msg.cardAcceptorTerminalIdentification."!value".trim(), "|||| ")}', 10),
  264. ('req-core.itm', 1, '@', 'copyMessageToChild("original");', NULL),
  265. ('req-core.itm', 1, '!code', '${"AXISSYSTEMSDNBHD."+tar.dspTransactionCode}', 20),
  266. ('req-core.itm', 1, '!destination', 'core-itm', NULL),
  267. ('req-core.itm', 1, '!mappingCode', '${head.code}', NULL),
  268. ('req-core.itm', 1, '!queueName', 'CORE_IN', NULL),
  269. ('req-core.itm', 1, 'dspHeaderType', '*HOST', NULL),
  270. ('req-core.itm', 1, 'dspDeviceName', '${tar.tellerComplete."!value".split("\\|", -1)[3]}', NULL),
  271. ('req-core.itm', 1, 'dspFiller1', 'F0', NULL),
  272. ('req-core.itm', 1, 'dspVersionNumber', '0000', NULL),
  273. ('req-core.itm', 1, 'dspDataFormatId', 'ABCS', NULL),
  274. ('req-core.itm', 1, 'dspSourceId', '*AXIS', NULL),
  275. ('req-core.itm', 1, 'dspBankIdNumber', '00000000000', NULL),
  276. ('req-core.itm', 1, 'dspNode', '00', NULL),
  277. ('req-core.itm', 1, 'dspExchangeId', '4040404040404040404040404040404040404040', NULL),
  278. ('req-core.itm', 1, 'dspScenarioNumber', 'AXISSYSTEMSDNBHD', NULL),
  279. ('req-core.itm', 1, 'dspTransactionCode', '5001', 10),
  280. ('req-core.itm', 1, 'dspUserId', '${tar.tellerComplete."!value".split("\\|", -1)[0]}', NULL),
  281. ('req-core.itm', 1, 'dspTerminalId', '${tar.tellerComplete."!value".split("\\|", -1)[1]}', NULL),
  282. ('req-core.itm', 1, 'ICLEN', '1020', NULL),
  283. ('req-core.itm', 1, 'ICHEAD', '*MOSA', NULL),
  284. ('req-core.itm', 1, 'ICDEVN', '${tar.tellerComplete."!value".split("\\|", -1)[3]}', NULL),
  285. ('req-core.itm', 1, 'ICID', '00000', NULL),
  286. ('req-core.itm', 1, 'TMTIMIN', '000000', NULL),
  287. ('req-core.itm', 1, 'TMTXTYP', 'T9999', NULL),
  288. ('req-core.itm', 1, 'ICEOM', '*EOM', NULL),
  289. ('req-core.itm', 1, 'TLBCUD', '${tar.tellerComplete."!value".split("\\|", -1)[2]}', NULL),
  290. ('req-core.itm', 1, 'TLBWS', 'ES', NULL),
  291. ('req-core.itm', 1, 'TLBFP3', 'FF', NULL),
  292. ('req-core.itm', 1, 'TLBID', '${tar.tellerComplete."!value".split("\\|", -1)[0]}', NULL),
  293. ('req-core.itm', 1, 'TLBTCD', '${tar.dspTransactionCode}', 20),
  294. ('req-core.itm', 1, 'TLBTDT', '${msg.transmissionDateTime."!value".substring(2,4)+msg.transmissionDateTime."!value".substring(0,2)+new java.text.SimpleDateFormat("yy").format(new Date())}', NULL),
  295. ('req-core.itm', 1, 'TLBWC1', '00', NULL),
  296. ('req-core.itm', 1, 'TLBWC2', '00', NULL),
  297. ('req-core.itm', 1, 'TLBJSN', '${msg.systemsTraceAuditNumber}', NULL),
  298. ('req-core.itm', 1, 'TLBJC1', '00', NULL),
  299. ('req-core.itm', 1, 'TLBJC2', '00', NULL),
  300. ('req-core.itm', 1, 'TLBFP1', 'FF', NULL),
  301. ('req-core.itm', 1, 'TLBFP2', 'FC', NULL),
  302. ('req-core.itm', 1, 'TLBCUR', 'IDR', NULL),
  303. ('req-core.itm', 1, 'TLBCIF', '${msg.timeLocalTransaction}', NULL),
  304. ('req-core.itm', 1, 'TLCUR1', 'IDR', NULL),
  305. ('req-core.itm', 1, 'TLXUFD', 'ATM', NULL),
  306. ('req-core.itm', 1, 'TLBDS1', '${msg.timeLocalTransaction."!value"+msg.dateLocalTransaction."!value"+msg.acquiringInstitutionIdentificationCode."!value".padRight(11," ")+msg.merchantType."!value".padRight(4, " ")+msg.retrievalReferenceNumber."!value".padRight(12," ")}', NULL),
  307. ('req-core.itm', 1, 'RMAPID', '${msg.retrievalReferenceNumber}${new java.text.SimpleDateFormat("yy").format(new Date())+msg.dateLocalTransaction."!value"}${msg.timeLocalTransaction}', NULL),
  308. ('req-core.itm', 1, 'RMADD3', '${(msg.track2Data==null||msg.track2Data."!value"==null?"":msg.track2Data."!value").padRight(37," ")}', NULL),
  309. ('req-core.itm', 1, 'RMPSTC', '${new java.text.SimpleDateFormat("yyyy").format(new Date())+msg.dateLocalTransaction."!value"}', NULL),
  310. ('req-core.itm', 1, 'RMSEHS', '${msg.dateLocalTransaction}', NULL),
  311. ('req-core.itm', 1, 'TLBFIL', '${msg.cardAcceptorTerminalIdentification."!value"+msg.retrievalReferenceNumber."!value".padRight(12," ")+msg.acquiringInstitutionIdentificationCode."!value".padRight(11," ")}', NULL);
  312. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('res-core.itm', '[izzit]', CURRENT USER, CURRENT TIMESTAMP);
  313. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET) VALUES ('res-core.itm', 1, '/data/body', '/data/body');
  314. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  315. VALUES ('res-core.itm', 1, '@', 'copyMessage("../body", "request/data/body/original")', 10),
  316. ('res-core.itm', 1, '!connid', '${head.connid}', 20),
  317. ('res-core.itm', 1, '!CorrelId', '${head.CorrelId}', 20),
  318. ('res-core.itm', 1, '!group', '${head.request.data.group}', 20),
  319. ('res-core.itm', 1, '!mid', '${head.request.data.mid}', 20),
  320. ('res-core.itm', 1, '!reqtimestamp', '${head.reqtimestamp}', 20),
  321. ('res-core.itm', 1, '!sid', '${head.sid}', 20),
  322. ('res-core.itm', 1, '!source', '${head.request.data.source}', 20),
  323. ('res-core.itm', 1, '!timestamp', '${head.timestamp}', 20),
  324. ('res-core.itm', 1, 'primaryAccountNumber', '${head.request.data.body.original.primaryAccountNumber}', 20),
  325. ('res-core.itm', 1, 'processingCode', '${head.request.data.body.original.processingCode}', 20),
  326. ('res-core.itm', 1, 'amountTransaction', '${head.request.data.body.original.amountTransaction}', 20),
  327. ('res-core.itm', 1, 'amountCardholderBilling', '${head.request.data.body.original.amountCardholderBilling}', 20),
  328. ('res-core.itm', 1, 'transmissionDateTime', '${head.request.data.body.original.transmissionDateTime}', 20),
  329. ('res-core.itm', 1, 'conversionRateCardholderBilling', '${head.request.data.body.original.conversionRateCardholderBilling}', 20),
  330. ('res-core.itm', 1, 'systemsTraceAuditNumber', '${head.request.data.body.original.systemsTraceAuditNumber}', 20),
  331. ('res-core.itm', 1, 'timeLocalTransaction', '${head.request.data.body.original.timeLocalTransaction}', 20),
  332. ('res-core.itm', 1, 'dateLocalTransaction', '${head.request.data.body.original.dateLocalTransaction}', 20),
  333. ('res-core.itm', 1, 'dateCapture', '${head.request.data.body.original.dateCapture}', 20),
  334. ('res-core.itm', 1, 'merchantType', '${head.request.data.body.original.merchantType}', 20),
  335. ('res-core.itm', 1, 'amountTransactionFee', '${head.request.data.body.original.amountTransactionFee}', 20),
  336. ('res-core.itm', 1, 'acquiringInstitutionIdentificationCode', '${head.request.data.body.original.acquiringInstitutionIdentificationCode}', 20),
  337. ('res-core.itm', 1, 'forwardingInstitutionIdentificationCode', '${head.request.data.body.original.forwardingInstitutionIdentificationCode}', 20),
  338. ('res-core.itm', 1, 'track2Data', '${head.request.data.body.original.track2Data}', 20),
  339. ('res-core.itm', 1, 'retrievalReferenceNumber', '${head.request.data.body.original.retrievalReferenceNumber}', 20),
  340. ('res-core.itm', 1, 'responseCode', '00', 20),
  341. ('res-core.itm', 1, 'cardAcceptorTerminalIdentification', '${head.request.data.body.original.cardAcceptorTerminalIdentification}', 20),
  342. ('res-core.itm', 1, 'cardAcceptorIdentificationCode', '${head.request.data.body.original.cardAcceptorIdentificationCode}', 20),
  343. ('res-core.itm', 1, 'cardAcceptorName', '${head.request.data.body.original.cardAcceptorName}', 20),
  344. ('res-core.itm', 1, 'additionalDataPrivate', '${head.request.data.body.original.additionalDataPrivate}', 20),
  345. ('res-core.itm', 1, 'currencyCodeTransaction', '${head.request.data.body.original.currencyCodeTransaction}', 20),
  346. ('res-core.itm', 1, 'reasonCode', '${head.request.data.body.original.reasonCode}', 20),
  347. ('res-core.itm', 1, 'reservedPrivate1', '${head.request.data.body.original.reservedPrivate1}', 20),
  348. ('res-core.itm', 1, 'reservedPrivate2', '${head.request.data.body.original.reservedPrivate2}', 20),
  349. ('res-core.itm', 1, 'receivingInstitutionIdentificationCode', '${head.request.data.body.original.receivingInstitutionIdentificationCode}', 20),
  350. ('res-core.itm', 1, 'fromAccount', '${head.request.data.body.original.fromAccount}', 20),
  351. ('res-core.itm', 1, 'toAccount', '${head.request.data.body.original.toAccount}', 20),
  352. ('res-core.itm', 1, 'reservedForPrivateUse1', '${head.request.data.body.original.reservedForPrivateUse1}', 20),
  353. ('res-core.itm', 1, 'networkManagementInformation', '${head.request.data.body.original.networkManagementInformation}', 20),
  354. ('res-core.itm', 1, 'reservedForPrivateUse', '${head.request.data.body.original.reservedForPrivateUse}', 20);
  355. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('res-core.itm.0200', '[izzit]', CURRENT USER, CURRENT TIMESTAMP);
  356. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID) VALUES ('res-core.itm.0200', 1, '/data/body', '/data/body', 'res-core.itm', 1);
  357. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  358. VALUES ('res-core.itm.0200', 1, 'messageType', '0210', 10),
  359. ('res-core.itm.0200', 1, '!code', '${tar.messageType."!value"+"."+tar.processingCode."!value"}', 20);
  360. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('abcs-res-conFail-F2', '[core]', CURRENT USER, CURRENT TIMESTAMP);
  361. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID) VALUES ('abcs-res-conFail-F2', 1, '/data/body', '/data/body', 'dsp', 1);
  362. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  363. VALUES ('abcs-res-conFail-F2', 1, 'TLBERR_F2', '${getParamValue("error-f2","confail","999")}', 10),
  364. ('abcs-res-conFail-F2', 1, 'ERROR_F2', '${tar.TLBERR_F2."!value" == getParamValue("error-f2","confail","999") ? getParamValue("error-f2","confail-detail","Invalid error") : "Invalid error"}', 20),
  365. ('abcs-res-conFail-F2', 1, 'isF2code', '${tar.TLBERR_F2}', 20),
  366. ('abcs-res-conFail-F2', 1, 'responseCode', '${tar.TLBERR_F2}', 20),
  367. ('abcs-res-conFail-F2', 1, '!CorrelId', '${head.request.data.CorrelId}', NULL),
  368. ('abcs-res-conFail-F2', 1, '!adaptor', '${head.adaptor?head.adaptor:head.request.data.source}', NULL),
  369. ('abcs-res-conFail-F2', 1, '!code', '${head.request.data.code}', NULL),
  370. ('abcs-res-conFail-F2', 1, '!codex_1', 'dsp-abcs-response', NULL),
  371. ('abcs-res-conFail-F2', 1, '!dir', 'I', NULL),
  372. ('abcs-res-conFail-F2', 1, '!multicodex_1', 'dsp-abcs-subresponse-F2', NULL),
  373. ('abcs-res-conFail-F2', 1, '!multicodex_suffix_1', '_F2', NULL),
  374. ('abcs-res-conFail-F2', 1, '!reqtimestamp', '${head.request.data.reqtimestamp}', NULL),
  375. ('abcs-res-conFail-F2', 1, '!source', '${head.request.data.source?head.request.data.source:head.request.data.destination}', NULL),
  376. ('abcs-res-conFail-F2', 1, '!timestamp', '${System.currentTimeMillis()}', NULL),
  377. ('abcs-res-conFail-F2', 1, '!type', 'dsp-abcs-response', NULL),
  378. ('abcs-res-conFail-F2', 1, '@', 'copyMessage("../request", "request");', NULL),
  379. ('abcs-res-conFail-F2', 1, 'AVBAL_F2', '0', NULL),
  380. ('abcs-res-conFail-F2', 1, 'FILLER1_F2', '11', NULL),
  381. ('abcs-res-conFail-F2', 1, 'FILLER2_F2', '11', NULL),
  382. ('abcs-res-conFail-F2', 1, 'ICCOMQ', 'DQAXISIN ', NULL),
  383. ('abcs-res-conFail-F2', 1, 'ICDEVN', '${msg.ICDEVN}', NULL),
  384. ('abcs-res-conFail-F2', 1, 'ICEOM', '${msg.ICEOM}', NULL),
  385. ('abcs-res-conFail-F2', 1, 'ICHEAD', '*SOKR', NULL),
  386. ('abcs-res-conFail-F2', 1, 'ICID', '00000', NULL),
  387. ('abcs-res-conFail-F2', 1, 'ICIPSF', '0', NULL),
  388. ('abcs-res-conFail-F2', 1, 'ICLEN', '122', NULL),
  389. ('abcs-res-conFail-F2', 1, 'ICRSV1', '0', NULL),
  390. ('abcs-res-conFail-F2', 1, 'ICRTRQ', ' ', NULL),
  391. ('abcs-res-conFail-F2', 1, 'TMTIMIN', '000000', NULL),
  392. ('abcs-res-conFail-F2', 1, 'TMTXTYP', '${msg.TMTXTYP}', NULL),
  393. ('abcs-res-conFail-F2', 1, 'abcsResponses', '[F2]', NULL),
  394. ('abcs-res-conFail-F2', 1, 'dspBankIdNumber', '${msg.dspBankIdNumber}', NULL),
  395. ('abcs-res-conFail-F2', 1, 'dspDataFormatId', '${msg.dspDataFormatId}', NULL),
  396. ('abcs-res-conFail-F2', 1, 'dspDestinationId', 'DQAXISIN ', NULL),
  397. ('abcs-res-conFail-F2', 1, 'dspExchangeId', ' ', NULL),
  398. ('abcs-res-conFail-F2', 1, 'dspFiller1', '40', NULL),
  399. ('abcs-res-conFail-F2', 1, 'dspHeaderFormatId', '*DSP', NULL),
  400. ('abcs-res-conFail-F2', 1, 'dspHeaderLength', '0213', NULL),
  401. ('abcs-res-conFail-F2', 1, 'dspHeaderType', '*SOKI', NULL),
  402. ('abcs-res-conFail-F2', 1, 'dspMessageStatus', '.-------', NULL),
  403. ('abcs-res-conFail-F2', 1, 'dspNumberOfErrorsToBeLoaded', '0010', NULL),
  404. ('abcs-res-conFail-F2', 1, 'dspNumberOfRecordsToBeLoaded', '0010', NULL),
  405. ('abcs-res-conFail-F2', 1, 'dspPacketLength', '', NULL),
  406. ('abcs-res-conFail-F2', 1, 'dspPortNumber', '${msg.dspPortNumber}', NULL),
  407. ('abcs-res-conFail-F2', 1, 'dspRetrievalReferenceNumber', ' ', NULL),
  408. ('abcs-res-conFail-F2', 1, 'dspRoutingNumber', '00 ', NULL),
  409. ('abcs-res-conFail-F2', 1, 'dspScenarioNumber', '${msg.dspScenarioNumber}', NULL),
  410. ('abcs-res-conFail-F2', 1, 'dspSourceId', '${msg.dspSourceId}', NULL),
  411. ('abcs-res-conFail-F2', 1, 'dspTerminalId', '${msg.dspTerminalId}', NULL),
  412. ('abcs-res-conFail-F2', 1, 'dspTransactionCode', '${msg.dspTransactionCode}', NULL),
  413. ('abcs-res-conFail-F2', 1, 'dspUserId', '${msg.dspUserId}', NULL),
  414. ('abcs-res-conFail-F2', 1, 'dspVersionNumber', '0200', NULL),
  415. ('abcs-res-conFail-F2', 1, 'responseCode_F2', 'F2', NULL),
  416. ('abcs-res-conFail-F2', 1, 'responseHeader_F2', 'F2', NULL),
  417. ('abcs-res-conFail-F2', 1, 'sequenceNumber', '${msg.TLBJSN}', NULL),
  418. ('abcs-res-conFail-F2', 1, 'tellerID', '${msg.TLBID}', NULL);
  419. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP)
  420. VALUES ('check.res-core.need-reversal', '[itm]', CURRENT USER, CURRENT TIMESTAMP);
  421. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID)
  422. VALUES ('check.res-core.need-reversal', 1, '/data', '/data', NULL, NULL);
  423. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  424. VALUES
  425. ('check.res-core.need-reversal', 1, '@', 'copyMessage()', NULL),
  426. ('check.res-core.need-reversal', 1, 'coreAct', '${getParamValue("check.res-core."+msg.request.data.group."!value"+"."+msg.request.data.body.original.processingCode."!value", msg.body.responseCode==null?"99":msg.body.responseCode."!value","not")}', NULL);
  427. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('res-core.itm.error', '[izzit]', CURRENT USER, CURRENT TIMESTAMP);
  428. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID) VALUES ('res-core.itm.error', 1, '/data/body', '/data/body', 'res-core.itm', 1);
  429. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT)
  430. VALUES ('res-core.itm.error', 1, '!error', '${head.error}'),
  431. ('res-core.itm.error', 1, '!errorDetail', '${head.errorDetail}'),
  432. ('res-core.itm.error', 1, 'responseCode', '${getParamValue("error_map|".concat(head.adaptor==null?head.destination."!value":head.adaptor."!value"), msg.responseCode."!value", "99")}');
  433. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('res-core.itm.0200.error', '[izzit]', CURRENT USER, CURRENT TIMESTAMP);
  434. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID) VALUES ('res-core.itm.0200.error', 1, '/data/body', '/data/body', 'res-core.itm.error', 1);
  435. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  436. VALUES ('res-core.itm.0200.error', 1, 'messageType', '0210', 10),
  437. ('res-core.itm.0200.error', 1, '!code', '${tar.messageType."!value"+"."+tar.processingCode."!value"}', 20);
  438. INSERT INTO MWCONFIG.MAPPING (ID, DESCRIPTION, MODULE, MODIFIED_BY, TIMESTAMP)
  439. VALUES ('req-core.itm.0200.201000.001001', 'ONUS Inquiry Balance Konven SA Request', '[itmit]', CURRENT USER, CURRENT TIMESTAMP);
  440. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID)
  441. VALUES ('req-core.itm.0200.201000.001001', 1, '/data/body', '/data/body', 'req-core.itm', 1);
  442. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  443. VALUES ('req-core.itm.0200.201000.001001', 1, 'TLBF01', '${msg.fromAccount}', null);
  444. INSERT INTO MWCONFIG.MAPPING (ID, DESCRIPTION, MODULE, MODIFIED_BY, TIMESTAMP)
  445. VALUES ('res-core.itm.0200.201000.001001', 'ONUS Inquiry Balance Konven SA Response', '[itmit]', CURRENT USER, CURRENT TIMESTAMP);
  446. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID)
  447. VALUES ('res-core.itm.0200.201000.001001', 1, '/data/body', '/data/body', 'res-core.itm.0200', 1);
  448. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT)
  449. VALUES ('res-core.itm.0200.201000.001001', 1, 'additionalResponseData', '${decimalFormat("0", (msg.AMT2_F1."!number"*100)).length()>12?"999999999999":decimalFormat("0", (msg.AMT2_F1."!number"*100)).padLeft(12, "0")}${decimalFormat("0", (msg.AMT1_F1."!number"*100)).length()>12?"999999999999":decimalFormat("0", (msg.AMT1_F1."!number"*100)).padLeft(12, "0")}'),
  450. ('res-core.itm.0200.201000.001001', 1, 'additionalDataPrivate', '${msg.SNAME_F1}');
  451. INSERT INTO MWCONFIG.MAPPING (ID, DESCRIPTION, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('req-core.itm.0200.202000.001001', 'ONUS Inquiry Balance Konven CA Request', '[itmit]', CURRENT USER, CURRENT TIMESTAMP);
  452. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID) VALUES ('req-core.itm.0200.202000.001001', 1, '/data/body', '/data/body', 'req-core.itm.0200.201000.001001', 1);
  453. INSERT INTO MWCONFIG.MAPPING (ID, DESCRIPTION, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('res-core.itm.0200.202000.001001', 'ONUS Inquiry Balance Konven CA Response', '[itmit]', CURRENT USER, CURRENT TIMESTAMP);
  454. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID) VALUES ('res-core.itm.0200.202000.001001', 1, '/data/body', '/data/body', 'res-core.itm.0200.201000.001001', 1);
  455. INSERT INTO MWCONFIG.RELOADTS(BROKER, EXECUTIONGROUP, MODIFIED_BY, TIMESTAMP, TYPE)
  456. VALUES
  457. ('ITMBROKER', 'ITMROUTER', CURRENT USER, CURRENT TIMESTAMP, 'mapping'),
  458. ('ITMBROKER', 'ITMROUTER', CURRENT USER, CURRENT TIMESTAMP, 'routing'),
  459. ('ITMBROKER', 'ITMCORE1', CURRENT USER, CURRENT TIMESTAMP, 'port'),
  460. ('ITMBROKER', 'ITMITM1', CURRENT USER, CURRENT TIMESTAMP, 'codex'),
  461. ('ITMBROKER', 'ITMITM1', CURRENT USER, CURRENT TIMESTAMP, 'db'),
  462. ('ITMBROKER', 'ITMITM1', CURRENT USER, CURRENT TIMESTAMP, 'mapping'),
  463. ('ITMBROKER', 'ITMITM1', CURRENT USER, CURRENT TIMESTAMP, 'param'),
  464. ('ITMBROKER', 'ITMITM1', CURRENT USER, CURRENT TIMESTAMP, 'parser'),
  465. ('ITMBROKER', 'ITMITM1', CURRENT USER, CURRENT TIMESTAMP, 'port'),
  466. ('ITMBROKER', 'ITMITM1', CURRENT USER, CURRENT TIMESTAMP, 'routing'),
  467. ('ITMBROKER', 'ITMITM1', CURRENT USER, CURRENT TIMESTAMP, 'rpg');
  468. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('req-core.itm-prima', '[itm]', CURRENT USER, CURRENT TIMESTAMP);
  469. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID)
  470. VALUES ('req-core.itm-prima', 1, '/data/body', '/data/body', 'req-core.itm', '1');
  471. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  472. VALUES
  473. ('req-core.itm-prima', 1, 'tellerComplete', '${getParamValue("device_teller_map", head.group."!value".trim() + "_PRIMA1" + msg.timeLocalTransaction."!value".substring(0,2), "|||| ")}', 10),
  474. ('req-core.itm-prima', 1, 'ICDEVN', '${tar.tellerComplete."!value".split("\\|", -1)[3]}', 20),
  475. ('req-core.itm-prima', 1, 'TLBCUD', '${tar.tellerComplete."!value".split("\\|", -1)[2]}', 20),
  476. ('req-core.itm-prima', 1, 'TLBID', '${tar.tellerComplete."!value".split("\\|", -1)[0]}', 20),
  477. ('req-core.itm-prima', 1, 'dspDeviceName', '${tar.tellerComplete."!value".split("\\|", -1)[3]}', 20),
  478. ('req-core.itm-prima', 1, 'dspTerminalId', '${tar.tellerComplete."!value".split("\\|", -1)[1]}', 20),
  479. ('req-core.itm-prima', 1, 'dspUserId', '${tar.tellerComplete."!value".split("\\|", -1)[0]}', 20);
  480. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('req-core.itm.0200.411000.001BCABCA', '[itm]', CURRENT USER, CURRENT TIMESTAMP);
  481. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID)
  482. VALUES ('req-core.itm.0200.411000.001BCABCA', 1, '/data/body', '/data/body', 'req-core.itm-prima', '1');
  483. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  484. VALUES
  485. ('req-core.itm.0200.411000.001BCABCA', 1, '@', 'dtree("CHARGES", "!group")', 10),
  486. ('req-core.itm.0200.411000.001BCABCA', 1, 'TLBF01', '${msg.fromAccount}', 20),
  487. ('req-core.itm.0200.411000.001BCABCA', 1, 'TLBF02', '${msg.amountTransaction."!number"}', 20),
  488. ('req-core.itm.0200.411000.001BCABCA', 1, 'TLBF03', '${getParamValueWithError("coa", "prima-liability", "error:92Unknown coa")}', 20),
  489. ('req-core.itm.0200.411000.001BCABCA', 1, 'TLBF04', '${getCharge(1)?getCharge(1).toBigDecimal()*100:0}', 20),
  490. ('req-core.itm.0200.411000.001BCABCA', 1, 'TLBF07', '${getParamValueWithError("coa", "prima-liability", "error:92Unknown coa")}', 20),
  491. ('req-core.itm.0200.411000.001BCABCA', 1, 'TLBF08', '${getCharge(2)?getCharge(2).toBigDecimal()*100:0}', 20),
  492. ('req-core.itm.0200.411000.001BCABCA', 1, 'TLBF15', '${getParamValueWithError("coa", "prima-liability", "error:92Unknown coa")}', 20),
  493. ('req-core.itm.0200.411000.001BCABCA', 1, 'TLBF17', '${tar.TLBF04."!value".toBigDecimal() + tar.TLBF08."!value".toBigDecimal()}', 30);
  494. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('req-core.itm.0200.412000.001BCABCA', '[itm]', CURRENT USER, CURRENT TIMESTAMP);
  495. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID)
  496. VALUES ('req-core.itm.0200.412000.001BCABCA', 1, '/data/body', '/data/body', 'req-core.itm.0200.411000.001BCABCA', '1');
  497. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('res-core.itm.0200.411000.001BCABCA', '[itm]', CURRENT USER, CURRENT TIMESTAMP);
  498. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID)
  499. VALUES ('res-core.itm.0200.411000.001BCABCA', 1, '/data/body', '/data/body', 'res-core.itm.0200', '1');
  500. INSERT INTO MWCONFIG.MAPPING_GROUP_LINE (MAPPING_ID, MAPPING_GROUP_ID, NAME, TEXT, SEQ)
  501. VALUES
  502. ('res-core.itm.0200.411000.001BCABCA', 1, 'additionalDataPrivate', '${msg.SNAME_F1}', null),
  503. ('res-core.itm.0200.411000.001BCABCA', 1, 'additionalResponseData', '${decimalFormat("0", (msg.AMT2_F1."!number"*100)).length()>12?"999999999999":decimalFormat("0", (msg.AMT2_F1."!number"*100)).padLeft(12, "0")}${decimalFormat("0", (msg.AMT1_F1."!number"*100)).length()>12?"999999999999":decimalFormat("0", (msg.AMT1_F1."!number"*100)).padLeft(12, "0")}', null);
  504. INSERT INTO MWCONFIG.MAPPING (ID, MODULE, MODIFIED_BY, TIMESTAMP) VALUES ('res-core.itm.0200.412000.001BCABCA', '[itm]', CURRENT USER, CURRENT TIMESTAMP);
  505. INSERT INTO MWCONFIG.MAPPING_GROUP (MAPPING_ID, ID, SOURCE, TARGET, INCLUDE_MAPPING_ID, INCLUDE_ID)
  506. VALUES ('res-core.itm.0200.412000.001BCABCA', 1, '/data/body', '/data/body', 'res-core.itm.0200.411000.001BCABCA', '1');