1
0

configbds.xml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <config>
  2. <attribute id="mapping-script">
  3. String unescape(String p) {
  4. id.co.hanoman.config.Util.unescape(p)
  5. }
  6. Object dtree(String group, String treeRoot) {
  7. id.co.hanoman.mbplugin.codex.UtilCodex.dtree(config, ctx, group, treeRoot, msg, head, tar);
  8. }
  9. String hex(String p) {
  10. id.co.hanoman.config.Util.hex(p)
  11. }
  12. void copyMessage() {
  13. id.co.hanoman.config.UtilMQ.copyMbMessage(tar.'!this', msg.'!this');
  14. }
  15. void copyMessage(String dest, String src) {
  16. id.co.hanoman.config.UtilMQ.copyMbMessage(id.co.hanoman.config.UtilMQ.getMbFolder(tar.'!this'?.getRootElement()?.getLastChild()?.getLastChild(), dest), id.co.hanoman.config.UtilMQ.getMbFolder(head.'!this', src));
  17. }
  18. void copyMessageToChild(String id) {
  19. id.co.hanoman.config.UtilMQ.copyMbMessage(id.co.hanoman.config.UtilMQ.getMbFolder(tar.'!this', id), msg.'!this');
  20. }
  21. void setValue(String name, String value) {
  22. mbt.createElementAsLastChild(com.ibm.broker.plugin.MbXMLNSC.FOLDER, name, value);
  23. }
  24. String counter(String id, int hiLength, int loLength, String dateReset) {
  25. id.co.hanoman.config.Util.counter(id, hiLength, loLength, dateReset);
  26. }
  27. String convert(String type, Object value, int length) {
  28. id.co.hanoman.config.Util.convert(type, value, length);
  29. }
  30. String decimalFormat(String format, Number value) {
  31. new java.text.DecimalFormat(format).format(value);
  32. }
  33. String getTimeZoneFormat(String format, String timeZone) {
  34. id.co.hanoman.config.Util.getTimeZoneFormat(format, timeZone);
  35. }
  36. String getTimeZoneFormat(String format, String timeZone, Date) {
  37. id.co.hanoman.config.Util.getTimeZoneFormat(format, timeZone, Date);
  38. }
  39. String getUID(String str){
  40. id.co.hanoman.config.Util.getUID(str);
  41. }
  42. Object bitmap(Map msg, List fields) {
  43. id.co.hanoman.config.Util.bitmap(msg, fields);
  44. }
  45. Object bitmapHex(Map msg, List fields) {
  46. id.co.hanoman.config.Util.hex(id.co.hanoman.config.Util.bitmap(msg, fields));
  47. }
  48. String getParamValue(String group, String name, String defaultValue) {
  49. ctx.getParamValue(group, name, defaultValue, src, head, local, idx, size, tar);
  50. }
  51. List getParamValues(String group, String name) {
  52. ctx.getParamValue(group, name, src, head, local, idx, size, tar);
  53. }
  54. String binaryToNumeric(String type, Object value) {
  55. id.co.hanoman.config.Util.binaryToNumeric(type, value)
  56. }
  57. String ebcdicToAscii(String value) {
  58. id.co.hanoman.config.Util.ebcdicToAscii(value)
  59. }
  60. </attribute>
  61. <include id="abcs-in" __src="abcs-in.xml"/>
  62. <include id="abcs-out" __src="abcs-out.xml"/>
  63. <codex id="dsp-abcs-subresponse">
  64. <field id="responseLength" type="groupLengthBinary" decimal-format="packed" length="2" base="2" />
  65. <field id="responseCode" type="string" charset="cp1047" length="2" />
  66. <field id="responseHeader" type="binary" length="1" />
  67. <field id="!type" type="script">${msg.get("responseCode")}</field>
  68. <field id="!subCodex" type="script">dsp-abcs-subresponse-${msg.get("responseCode")}</field>
  69. </codex>
  70. <codex id="dsp-abcs-subresponse-60">
  71. <field id="responseLength" type="groupLengthBinary" decimal-format="packed" length="2" base="2" />
  72. <field id="responseCode" type="string" charset="cp1047" length="2" />
  73. <field id="responseHeader" type="binary" length="1" />
  74. <field id="UNCODE" type="string" charset="cp1047" length="4" />
  75. <field id="PYIDCS" type="string" charset="cp1047" length="20" />
  76. <field id="PYNMCS" type="string" charset="cp1047" length="40" />
  77. <field id="UNREK" type="string" charset="cp1047" length="19" />
  78. <field id="AMOUNT" type="string" charset="cp1047" length="19" />
  79. <field id="UNPYTP" type="string" charset="cp1047" length="3" />
  80. <field id="UNNAME" type="string" charset="cp1047" length="40" />
  81. <field id="PYIDTG" type="string" charset="cp1047" length="11" />
  82. <field id="PYKDRY" type="string" charset="cp1047" length="10" />
  83. <field id="PYALM1" type="string" charset="cp1047" length="40" />
  84. <field id="UNRSV1" type="string" charset="cp1047" length="10" />
  85. <field id="PYAWAL" type="string" charset="cp1047" length="19" />
  86. <field id="PYAKHIR" type="string" charset="cp1047" length="19" />
  87. <field id="PYUSED" type="string" charset="cp1047" length="19" />
  88. <field id="UNAMT1" type="string" charset="cp1047" length="19" />
  89. <field id="UNAMT2" type="string" charset="cp1047" length="19" />
  90. <field id="UNAMT3" type="string" charset="cp1047" length="19" />
  91. <field id="UNAMT4" type="string" charset="cp1047" length="19" />
  92. <field id="UNAMT5" type="string" charset="cp1047" length="19" />
  93. <field id="UNAMT6" type="string" charset="cp1047" length="19" />
  94. <field id="UNAMT7" type="string" charset="cp1047" length="19" />
  95. <field id="UNAMT8" type="string" charset="cp1047" length="19" />
  96. <field id="UNAMT9" type="string" charset="cp1047" length="19" />
  97. <field id="UNAMTA" type="string" charset="cp1047" length="19" />
  98. <field id="ADMAMT" type="string" charset="cp1047" length="10" />
  99. <field charset="cp1047" id="PYNMRY" length="40" type="string"/>
  100. <field charset="cp1047" id="PYANGS" length="4" type="string"/>
  101. <field charset="cp1047" id="UNRSVF" length="1" type="string"/>
  102. <field charset="cp1047" id="FEPSD2" length="2" type="string"/>
  103. <field charset="cp1047" id="FEPED2" length="2" type="string"/>
  104. <field charset="cp1047" id="NOREFF" length="25" type="string"/>
  105. <field charset="cp1047" id="ADBAMT" length="10" type="string"/>
  106. <field charset="cp1047" id="ADMBNK" length="10" type="string"/>
  107. <field charset="cp1047" id="FEESWT" length="10" type="string"/>
  108. <field charset="cp1047" id="ACTADB" length="19" type="string"/>
  109. <field charset="cp1047" id="ACTSWT" length="19" type="string"/>
  110. <!--field id="PYNMRY" type="string" charset="cp1047" length="40" />
  111. <field id="PYANGS" type="string" charset="cp1047" length="4" />
  112. <field id="UNRSVF" type="string" charset="cp1047" length="1" /-->
  113. <field id="!type" type="script">${msg.get("responseCode")}</field>
  114. </codex>
  115. <codex id="dsp-abcs-subresponse-F2">
  116. <field id="responseLength" type="groupLengthBinary" decimal-format="packed" length="2" base="2" />
  117. <field id="responseCode" type="string" charset="cp1047" length="2" />
  118. <field id="responseHeader" type="binary" length="1" />
  119. <field id="FILLER1" type="binary" length="1" />
  120. <field id="ERROR" type="string" charset="cp1047" length="54" />
  121. <field id="FILLER2" type="binary" length="1" />
  122. <field id="TLBERR" type="numericBinary" decimal-format="packed" length="2" />
  123. <field id="AVBAL" type="numericBinary" decimal-format="P(2)" length="10" />
  124. <field id="!type" type="script">${msg.get("responseCode")}</field>
  125. </codex>
  126. <codex id="dsp-abcs-subresponse-F4">
  127. <field id="responseLength" type="groupLengthBinary" decimal-format="packed" length="2" base="2" />
  128. <field id="responseCode" type="string" charset="cp1047" length="2" />
  129. <field id="responseHeader" type="binary" length="1" />
  130. <field id="TLXMNE" type="string" charset="cp1047" length="3" />
  131. <field id="FILLER1" type="binary" length="1" />
  132. <field id="RSSNAM" type="string" charset="cp1047" length="20" />
  133. <field id="MSID" type="string" charset="cp1047" length="2" />
  134. <field id="MSD" type="string" charset="cp1047" length="18" />
  135. <field id="HEX11" type="binary" length="1" />
  136. <field id="MSID2" type="string" charset="cp1047" length="2" />
  137. <field id="MSD2" type="string" charset="cp1047" length="18" />
  138. <field id="MSID3" type="string" charset="cp1047" length="2" />
  139. <field id="MSD3" type="string" charset="cp1047" length="18" />
  140. <field id="ACC" type="numericBinary" decimal-format="packed" length="10" />
  141. <field id="PBSRN" type="numericBinary" decimal-format="packed" length="4" />
  142. <field id="CRBBAL" type="numericBinary" decimal-format="P(2)" length="8" />
  143. <field id="AVLBBAL" type="numericBinary" decimal-format="P(2)" length="8" />
  144. <field id="!type" type="script">${msg.get("responseCode")}</field>
  145. </codex>
  146. </config>