Advertisement
aadddrr

Untitled

Apr 10th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 28.87 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <definitions xmlns="http://ws.apache.org/ns/synapse">
  3.     <registry provider="org.wso2.carbon.mediation.registry.ESBRegistry">
  4.         <parameter name="cachableDuration">15000</parameter>
  5.     </registry>
  6.     <proxy name="AuthenticateProxy" transports="https http" startOnLoad="true" trace="enable">
  7.         <target inSequence="AuthenticationSequence"/>
  8.     </proxy>
  9.     <proxy name="UserAuditProxy" transports="https http" startOnLoad="true" trace="enable">
  10.         <target inSequence="UserAuditSequence"/>
  11.     </proxy>
  12.     <proxy name="JLeafAuthenticateProxy" transports="https http" startOnLoad="true" trace="enable">
  13.         <target inSequence="JLeafAuthenticationSequence"/>
  14.     </proxy>
  15.     <proxy name="JLeafNewAuthenticateProxy" transports="https http" startOnLoad="true" trace="enable">
  16.         <target inSequence="JLeafNewAuthenticationSequence"/>
  17.     </proxy>
  18.     <proxy name="TaskProxy" transports="https http" startOnLoad="true" trace="enable">
  19.         <target>
  20.             <inSequence>
  21.                 <log level="custom">
  22.                     <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY TaskProxy"/>
  23.                 </log>
  24.                 <log level="custom">
  25.                     <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  26.                 </log>
  27.                 <log level="custom">
  28.                     <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  29.                 </log>
  30.                 <log level="custom">
  31.                     <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  32.                 </log>
  33.                 <log level="custom">
  34.                     <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  35.                 </log>
  36.                 <log level="custom">
  37.                     <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  38.                 </log>
  39.                 <sequence key="AuthorizationSequence"/>
  40.                 <property name="STATE" value="AUTHORIZATION" scope="default"/>
  41.             </inSequence>
  42.             <outSequence>
  43.                 <log level="custom">
  44.                     <property name="LOGGER" value="OutSequence::BEGIN"/>
  45.                     <property name="Body" expression="$body"/>
  46.                 </log>
  47.                 <switch source="get-property('STATE')">
  48.                     <case regex="AUTHORIZATION">
  49.                         <log level="custom">
  50.                             <property name="LOGGER" value="AUTHORIZATION::BEGIN"/>
  51.                         </log>
  52.                         <filter xpath="//result/status='OK'">
  53.                             <then>
  54.                                 <property name="STATE" value="TASK" scope="default"/>
  55.                                 <sequence key="TaskSequence"/>
  56.                             </then>
  57.                             <else>
  58.                                 <property name="STATE" value="DEFAULT" scope="default"/>
  59.                                 <send/>
  60.                             </else>
  61.                         </filter>
  62.                         <log level="custom">
  63.                             <property name="LOGGER" value="AUTHORIZATION::END"/>
  64.                         </log>
  65.                     </case>
  66.                     <case regex="TASK">
  67.                         <log level="custom">
  68.                             <property name="LOGGER" value="TASK::BEGIN"/>
  69.                         </log>
  70.                         <property name="STATE" value="DEFAULT" scope="default"/>
  71.                         <property name="To" expression="//result/task" scope="default"/>
  72.                         <send/>
  73.                         <log level="custom">
  74.                             <property name="LOGGER" value="TASK::END"/>
  75.                         </log>
  76.                     </case>
  77.                     <default>
  78.                         <send/>
  79.                     </default>
  80.                 </switch>
  81.                 <log level="custom">
  82.                     <property name="LOGGER" value="OutSequence::END"/>
  83.                 </log>
  84.             </outSequence>
  85.         </target>
  86.     </proxy>
  87.     <proxy name="JLeafTaskProxy" transports="https http" startOnLoad="true" trace="enable">
  88.         <target>
  89.             <inSequence>
  90.                 <log level="custom">
  91.                     <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY TaskProxy"/>
  92.                 </log>
  93.                 <log level="custom">
  94.                     <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  95.                 </log>
  96.                 <log level="custom">
  97.                     <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  98.                 </log>
  99.                 <log level="custom">
  100.                     <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  101.                 </log>
  102.                 <log level="custom">
  103.                     <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  104.                 </log>
  105.                 <log level="custom">
  106.                     <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  107.                 </log>
  108.                 <sequence key="JLeafAuthorizationSequence"/>
  109.                 <property name="STATE" value="AUTHORIZATION" scope="default"/>
  110.             </inSequence>
  111.             <outSequence>
  112.                 <log level="custom">
  113.                     <property name="LOGGER" value="OutSequence::BEGIN"/>
  114.                     <property name="Body" expression="$body"/>
  115.                 </log>
  116.                 <switch source="get-property('STATE')">
  117.                     <case regex="AUTHORIZATION">
  118.                         <log level="custom">
  119.                             <property name="LOGGER" value="AUTHORIZATION::BEGIN"/>
  120.                         </log>
  121.                         <filter xpath="//result/status='OK'">
  122.                             <then>
  123.                                 <property name="STATE" value="TASK" scope="default"/>
  124.                                 <sequence key="JLeafTaskSequence"/>
  125.                             </then>
  126.                             <else>
  127.                                 <property name="STATE" value="DEFAULT" scope="default"/>
  128.                                 <send/>
  129.                             </else>
  130.                         </filter>
  131.                         <log level="custom">
  132.                             <property name="LOGGER" value="AUTHORIZATION::END"/>
  133.                         </log>
  134.                     </case>
  135.                     <case regex="TASK">
  136.                         <log level="custom">
  137.                             <property name="LOGGER" value="TASK::BEGIN"/>
  138.                         </log>
  139.                         <property name="STATE" value="DEFAULT" scope="default"/>
  140.                         <property name="To" expression="//result/task" scope="default"/>
  141.                         <send/>
  142.                         <log level="custom">
  143.                             <property name="LOGGER" value="TASK::END"/>
  144.                         </log>
  145.                     </case>
  146.                     <default>
  147.                         <send/>
  148.                     </default>
  149.                 </switch>
  150.                 <log level="custom">
  151.                     <property name="LOGGER" value="OutSequence::END"/>
  152.                 </log>
  153.             </outSequence>
  154.         </target>
  155.     </proxy>
  156.     <proxy name="JLeafUserAuditProxy" transports="https http" startOnLoad="true" trace="enable">
  157.         <target inSequence="JLeafUserAuditSequence"/>
  158.     </proxy>
  159.     <endpoint name="JLeafGlTaskService">
  160.         <address uri="http://localhost:8082/axis2/services/GeneralLedgerTaskService.GeneralLedgerTaskServiceHttpEndpoint/execute"/>
  161.     </endpoint>
  162.     <endpoint name="JLeafNewAuthService">
  163.         <address uri="http://localhost:8082/axis2/services/NewAuthenticationService.NewAuthenticationServiceHttpEndpoint/execute"/>
  164.     </endpoint>
  165.     <endpoint name="MasterTaskService">
  166.         <address uri="http://localhost:8082/axis2/services/MasterTaskService.MasterTaskServiceHttpEndpoint/execute"/>
  167.     </endpoint>
  168.     <endpoint name="LearnJleafTaskService">
  169.         <address uri="http://localhost:8082/axis2/services/LearnTaskService.LearnTaskServiceHttpEndpoint/execute"/>
  170.     </endpoint>
  171.     <endpoint name="PosIntgrJleafTaskService">
  172.         <address uri="http://localhost:8082/axis2/services/PosIntgrJleafTaskService.PosIntgrJleafTaskServiceHttpEndpoint/execute"/>
  173.     </endpoint>
  174.     <endpoint name="JLeafTaskService">
  175.         <address uri="http://localhost:8082/axis2/services/TaskService.TaskServiceHttpEndpoint/execute"/>
  176.     </endpoint>
  177.     <endpoint name="AuthorizationService">
  178.         <address uri="http://localhost:8082/axis2/services/AuthorizationService.AuthorizationServiceHttpEndpoint/execute"/>
  179.     </endpoint>
  180.     <endpoint name="JLeafFinanceTaskService">
  181.         <address uri="http://localhost:8082/axis2/services/FinanceTaskService.FinanceTaskServiceHttpEndpoint/execute"/>
  182.     </endpoint>
  183.     <endpoint name="JLeafAuthenticationService">
  184.         <address uri="http://localhost:8082/axis2/services/AuthenticationService.AuthenticationServiceHttpEndpoint/execute"/>
  185.     </endpoint>
  186.     <endpoint name="FinanceTaskService">
  187.         <address uri="http://localhost:8082/axis2/services/FinanceTaskService.FinanceTaskServiceHttpEndpoint/execute"/>
  188.     </endpoint>
  189.     <endpoint name="JLeafLogisticTaskService">
  190.         <address uri="http://localhost:8082/axis2/services/LogisticTaskService.LogisticTaskServiceHttpEndpoint/execute"/>
  191.     </endpoint>
  192.     <endpoint name="JLeafSalesTaskService">
  193.         <address uri="http://localhost:8082/axis2/services/SalesTaskService.SalesTaskServiceHttpEndpoint/execute"/>
  194.     </endpoint>
  195.     <endpoint name="AddUserAuditService">
  196.         <address uri="http://localhost:8082/axis2/services/AddUserAuditService.AddUserAuditServiceHttpEndpoint/execute"/>
  197.     </endpoint>
  198.     <endpoint name="AuthenticationService">
  199.         <address uri="http://localhost:8082/axis2/services/AuthenticationService.AuthenticationServiceHttpEndpoint/execute"/>
  200.     </endpoint>
  201.     <endpoint name="JLeafInventoryTaskService">
  202.         <address uri="http://localhost:8082/axis2/services/InventoryTaskService.InventoryTaskServiceHttpEndpoint/execute"/>
  203.     </endpoint>
  204.     <endpoint name="PurchasingTaskService">
  205.         <address uri="http://localhost:8082/axis2/services/PurchasingTaskService.PurchasingTaskServiceHttpEndpoint/execute"/>
  206.     </endpoint>
  207.     <endpoint name="SalesTaskService">
  208.         <address uri="http://localhost:8082/axis2/services/SalesTaskService.SalesTaskServiceHttpEndpoint/execute"/>
  209.     </endpoint>
  210.     <endpoint name="JLeafMasterTaskService">
  211.         <address uri="http://localhost:8082/axis2/services/MasterTaskService.MasterTaskServiceHttpEndpoint/execute"/>
  212.     </endpoint>
  213.     <endpoint name="JLeafPosIntgrJleafTaskService">
  214.         <address uri="http://localhost:8082/axis2/services/PosIntgrJleafTaskService.PosIntgrJleafTaskServiceHttpEndpoint/execute"/>
  215.     </endpoint>
  216.     <endpoint name="ApprovalTaskService">
  217.         <address uri="http://localhost:8082/axis2/services/ApprovalTaskService.ApprovalTaskServiceHttpEndpoint/execute"/>
  218.     </endpoint>
  219.     <endpoint name="JLeafRmaTaskService">
  220.         <address uri="http://localhost:8082/axis2/services/RmaTaskService.RmaTaskServiceHttpEndpoint/execute"/>
  221.     </endpoint>
  222.     <endpoint name="InventoryTaskService">
  223.         <address uri="http://localhost:8082/axis2/services/InventoryTaskService.InventoryTaskServiceHttpEndpoint/execute"/>
  224.     </endpoint>
  225.     <endpoint name="JLeafCashBankTaskService">
  226.         <address uri="http://localhost:8082/axis2/services/CashBankTaskService.CashBankTaskServiceHttpEndpoint/execute"/>
  227.     </endpoint>
  228.     <endpoint name="JLeafApprovalTaskService">
  229.         <address uri="http://localhost:8082/axis2/services/ApprovalTaskService.ApprovalTaskServiceHttpEndpoint/execute"/>
  230.     </endpoint>
  231.     <endpoint name="JLeafAuthorizationService">
  232.         <address uri="http://localhost:8082/axis2/services/AuthorizationService.AuthorizationServiceHttpEndpoint/execute"/>
  233.     </endpoint>
  234.     <endpoint name="JLeafPurchasingTaskService">
  235.         <address uri="http://localhost:8082/axis2/services/PurchasingTaskService.PurchasingTaskServiceHttpEndpoint/execute"/>
  236.     </endpoint>
  237.     <endpoint name="ReportService">
  238.         <address uri="http://localhost:8082/axis2/services/ReportService.ReportServiceHttpEndpoint/execute"/>
  239.     </endpoint>
  240.     <endpoint name="JLeafReportService">
  241.         <address uri="http://localhost:8082/axis2/services/ReportService.ReportServiceHttpEndpoint/execute"/>
  242.     </endpoint>
  243.     <endpoint name="JLeafAddUserAuditService">
  244.         <address uri="http://localhost:8082/axis2/services/AddUserAuditService.AddUserAuditServiceHttpEndpoint/execute"/>
  245.     </endpoint>
  246.     <endpoint name="TaskService">
  247.         <address uri="http://localhost:8082/axis2/services/TaskService.TaskServiceHttpEndpoint/execute"/>
  248.     </endpoint>
  249.     <sequence name="JLeafAuthorizationSequence" trace="enable">
  250.         <log level="custom">
  251.             <property name="LOGGER" value="***** BEGIN AuthorizationSequence *****"/>
  252.         </log>
  253.         <send>
  254.             <endpoint key="JLeafAuthorizationService"/>
  255.         </send>
  256.         <log level="custom">
  257.             <property name="LOGGER" value="***** END AuthorizationSequence *****"/>
  258.         </log>
  259.     </sequence>
  260.     <sequence name="UserAuditSequence" trace="enable">
  261.         <log level="custom">
  262.             <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY UserAuditProxy"/>
  263.         </log>
  264.         <log level="custom">
  265.             <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  266.         </log>
  267.         <log level="custom">
  268.             <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  269.         </log>
  270.         <log level="custom">
  271.             <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  272.         </log>
  273.         <log level="custom">
  274.             <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  275.         </log>
  276.         <log level="custom">
  277.             <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  278.         </log>
  279.         <log level="custom">
  280.             <property name="LOGGER" value="******** BEGIN UserAuditSequence ********"/>
  281.         </log>
  282.         <send>
  283.             <endpoint key="AddUserAuditService"/>
  284.         </send>
  285.         <log level="custom">
  286.             <property name="LOGGER" value="******** END UserAuditSequence ********"/>
  287.         </log>
  288.     </sequence>
  289.     <sequence name="AuthenticationSequence" trace="enable">
  290.         <log level="custom">
  291.             <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY AuthenticateProxy"/>
  292.         </log>
  293.         <log level="custom">
  294.             <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  295.         </log>
  296.         <log level="custom">
  297.             <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  298.         </log>
  299.         <log level="custom">
  300.             <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  301.         </log>
  302.         <log level="custom">
  303.             <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  304.         </log>
  305.         <log level="custom">
  306.             <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  307.         </log>
  308.         <log level="custom">
  309.             <property name="LOGGER" value="******** BEGIN AuthenticationSequence ********"/>
  310.         </log>
  311.         <send>
  312.             <endpoint key="AuthenticationService"/>
  313.         </send>
  314.         <log level="custom">
  315.             <property name="LOGGER" value="******** END AuthenticationSequence ********"/>
  316.         </log>
  317.     </sequence>
  318.     <sequence name="JLeafAuthenticationSequence" trace="enable">
  319.         <log level="custom">
  320.             <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY AuthenticateProxy"/>
  321.         </log>
  322.         <log level="custom">
  323.             <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  324.         </log>
  325.         <log level="custom">
  326.             <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  327.         </log>
  328.         <log level="custom">
  329.             <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  330.         </log>
  331.         <log level="custom">
  332.             <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  333.         </log>
  334.         <log level="custom">
  335.             <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  336.         </log>
  337.         <log level="custom">
  338.             <property name="LOGGER" value="******** BEGIN AuthenticationSequence ********"/>
  339.         </log>
  340.         <send>
  341.             <endpoint key="JLeafAuthenticationService"/>
  342.         </send>
  343.         <log level="custom">
  344.             <property name="LOGGER" value="******** END AuthenticationSequence ********"/>
  345.         </log>
  346.     </sequence>
  347.     <sequence name="TaskSequence" trace="enable">
  348.         <log level="custom">
  349.             <property name="LOGGER" value="***** BEGIN TaskSequence *****"/>
  350.         </log>
  351.         <switch xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns3="http://org.apache.synapse/xsd" source="//result/header/module">
  352.             <case regex="erpjleaf">
  353.                 <log level="custom">
  354.                     <property name="LOGGER" value="*** ERP JLEAF MASTER SERVICE ***"/>
  355.                 </log>
  356.                 <send>
  357.                     <endpoint key="MasterTaskService"/>
  358.                 </send>
  359.             </case>
  360.             <case regex="posintgrjleaf">
  361.                 <log level="custom">
  362.                     <property name="LOGGER" value="*** ERP JLEAF POS INTEGRATION SERVICE ***"/>
  363.                 </log>
  364.                 <send>
  365.                     <endpoint key="PosIntgrJleafTaskService"/>
  366.                 </send>
  367.             </case>
  368.             <case regex="erpjleafpurch">
  369.                 <log level="custom">
  370.                     <property name="LOGGER" value="*** ERP JLEAF PURCHASING SERVICE ***"/>
  371.                 </log>
  372.                 <send>
  373.                     <endpoint key="PurchasingTaskService"/>
  374.                 </send>
  375.             </case>
  376.             <case regex="erpjleafsales">
  377.                 <log level="custom">
  378.                     <property name="LOGGER" value="*** ERP JLEAF SALES SERVICE ***"/>
  379.                 </log>
  380.                 <send>
  381.                     <endpoint key="SalesTaskService"/>
  382.                 </send>
  383.             </case>
  384.             <case regex="erpjleafinv">
  385.                 <log level="custom">
  386.                     <property name="LOGGER" value="*** ERP JLEAF INV SERVICE ***"/>
  387.                 </log>
  388.                 <send>
  389.                     <endpoint key="InventoryTaskService"/>
  390.                 </send>
  391.             </case>
  392.             <case regex="awe">
  393.                 <log level="custom">
  394.                     <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  395.                 </log>
  396.                 <send>
  397.                     <endpoint key="ApprovalTaskService"/>
  398.                 </send>
  399.             </case>
  400.             <case regex="jlego-awe">
  401.                 <log level="custom">
  402.                     <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  403.                 </log>
  404.                 <send>
  405.                     <endpoint key="ApprovalTaskService"/>
  406.                 </send>
  407.             </case>
  408.             <case regex="erpjleaffin">
  409.                 <log level="custom">
  410.                     <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  411.                 </log>
  412.                 <send>
  413.                     <endpoint key="FinanceTaskService"/>
  414.                 </send>
  415.             </case>
  416.             <case regex="learnjleaf">
  417.                 <log level="custom">
  418.                     <property name="LOGGER" value="*** LEARNJLEAF SERVICE ***"/>
  419.                 </log>
  420.                 <send>
  421.                     <endpoint key="LearnJleafTaskService"/>
  422.                 </send>
  423.             </case>
  424.             <default>
  425.                 <log level="custom">
  426.                     <property name="LOGGER" value="*** COMMON SERVICE ***"/>
  427.                 </log>
  428.                 <send>
  429.                     <endpoint key="TaskService"/>
  430.                 </send>
  431.             </default>
  432.         </switch>
  433.         <log level="custom">
  434.             <property name="LOGGER" value="***** END TaskSequence *****"/>
  435.         </log>
  436.     </sequence>
  437.     <sequence name="fault">
  438.         <log level="full">
  439.             <property name="MESSAGE" value="Executing default &quot;fault&quot; sequence"/>
  440.             <property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
  441.             <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
  442.         </log>
  443.         <drop/>
  444.     </sequence>
  445.     <sequence name="JLeafNewAuthenticationSequence" trace="enable">
  446.         <log level="custom">
  447.             <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY AuthenticateProxy"/>
  448.         </log>
  449.         <log level="custom">
  450.             <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  451.         </log>
  452.         <log level="custom">
  453.             <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  454.         </log>
  455.         <log level="custom">
  456.             <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  457.         </log>
  458.         <log level="custom">
  459.             <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  460.         </log>
  461.         <log level="custom">
  462.             <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  463.         </log>
  464.         <log level="custom">
  465.             <property name="LOGGER" value="******** BEGIN NewAuthenticationSequence ********"/>
  466.         </log>
  467.         <send>
  468.             <endpoint key="JLeafNewAuthService"/>
  469.         </send>
  470.         <log level="custom">
  471.             <property name="LOGGER" value="******** END NewAuthenticationSequence ********"/>
  472.         </log>
  473.     </sequence>
  474.     <sequence name="JLeafUserAuditSequence" trace="enable">
  475.         <log level="custom">
  476.             <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY UserAuditProxy"/>
  477.         </log>
  478.         <log level="custom">
  479.             <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  480.         </log>
  481.         <log level="custom">
  482.             <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  483.         </log>
  484.         <log level="custom">
  485.             <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  486.         </log>
  487.         <log level="custom">
  488.             <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  489.         </log>
  490.         <log level="custom">
  491.             <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  492.         </log>
  493.         <log level="custom">
  494.             <property name="LOGGER" value="******** BEGIN UserAuditSequence ********"/>
  495.         </log>
  496.         <send>
  497.             <endpoint key="JLeafAddUserAuditService"/>
  498.         </send>
  499.         <log level="custom">
  500.             <property name="LOGGER" value="******** END UserAuditSequence ********"/>
  501.         </log>
  502.     </sequence>
  503.     <sequence name="AuthorizationSequence" trace="enable">
  504.         <log level="custom">
  505.             <property name="LOGGER" value="***** BEGIN AuthorizationSequence *****"/>
  506.         </log>
  507.         <send>
  508.             <endpoint key="AuthorizationService"/>
  509.         </send>
  510.         <log level="custom">
  511.             <property name="LOGGER" value="***** END AuthorizationSequence *****"/>
  512.         </log>
  513.     </sequence>
  514.     <sequence name="main">
  515.         <log/>
  516.         <drop/>
  517.     </sequence>
  518.     <sequence name="JLeafTaskSequence" trace="enable">
  519.         <log level="custom">
  520.             <property name="LOGGER" value="***** BEGIN TaskSequence *****"/>
  521.         </log>
  522.         <switch xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns3="http://org.apache.synapse/xsd" source="//result/header/module">
  523.             <case regex="erpjleaf">
  524.                 <log level="custom">
  525.                     <property name="LOGGER" value="*** ERP JLEAF MASTER SERVICE ***"/>
  526.                 </log>
  527.                 <send>
  528.                     <endpoint key="JLeafMasterTaskService"/>
  529.                 </send>
  530.             </case>
  531.             <case regex="rmajleaf">
  532.                 <log level="custom">
  533.                     <property name="LOGGER" value="*** RMA JLEAF INTEGRATION SERVICE ***"/>
  534.                 </log>
  535.                 <send>
  536.                     <endpoint key="JLeafRmaTaskService"/>
  537.                 </send>
  538.             </case>
  539.             <case regex="posintgrjleaf">
  540.                 <log level="custom">
  541.                     <property name="LOGGER" value="*** ERP JLEAF POS INTEGRATION SERVICE ***"/>
  542.                 </log>
  543.                 <send>
  544.                     <endpoint key="JLeafPosIntgrJleafTaskService"/>
  545.                 </send>
  546.             </case>
  547.             <case regex="erpjleafpurch">
  548.                 <log level="custom">
  549.                     <property name="LOGGER" value="*** ERP JLEAF PURCHASING SERVICE ***"/>
  550.                 </log>
  551.                 <send>
  552.                     <endpoint key="JLeafPurchasingTaskService"/>
  553.                 </send>
  554.             </case>
  555.             <case regex="erpjleafsales">
  556.                 <log level="custom">
  557.                     <property name="LOGGER" value="*** ERP JLEAF SALES SERVICE ***"/>
  558.                 </log>
  559.                 <send>
  560.                     <endpoint key="JLeafSalesTaskService"/>
  561.                 </send>
  562.             </case>
  563.             <case regex="erpjleafcb">
  564.                 <log level="custom">
  565.                     <property name="LOGGER" value="*** ERP JLEAF CASHBANK SERVICE ***"/>
  566.                 </log>
  567.                 <send>
  568.                     <endpoint key="JLeafCashBankTaskService"/>
  569.                 </send>
  570.             </case>
  571.             <case regex="erpjleafinv">
  572.                 <log level="custom">
  573.                     <property name="LOGGER" value="*** ERP JLEAF INV SERVICE ***"/>
  574.                 </log>
  575.                 <send>
  576.                     <endpoint key="JLeafInventoryTaskService"/>
  577.                 </send>
  578.             </case>
  579.             <case regex="erpjleafgl">
  580.                 <log level="custom">
  581.                     <property name="LOGGER" value="*** ERP JLEAF GL SERVICE ***"/>
  582.                 </log>
  583.                 <send>
  584.                     <endpoint key="JLeafGlTaskService"/>
  585.                 </send>
  586.             </case>
  587.             <case regex="erpjleaflog">
  588.                 <log level="custom">
  589.                     <property name="LOGGER" value="*** ERP JLEAF GL SERVICE ***"/>
  590.                 </log>
  591.                 <send>
  592.                     <endpoint key="JLeafLogisticTaskService"/>
  593.                 </send>
  594.             </case>
  595.             <case regex="awe">
  596.                 <log level="custom">
  597.                     <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  598.                 </log>
  599.                 <send>
  600.                     <endpoint key="JLeafApprovalTaskService"/>
  601.                 </send>
  602.             </case>
  603.             <case regex="erpjleaffin">
  604.                 <log level="custom">
  605.                     <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  606.                 </log>
  607.                 <send>
  608.                     <endpoint key="JLeafFinanceTaskService"/>
  609.                 </send>
  610.             </case>
  611.             <case regex="learnjleaf">
  612.                 <log level="custom">
  613.                     <property name="LOGGER" value="*** LEARNJLEAF SERVICE ***"/>
  614.                 </log>
  615.                 <send>
  616.                     <endpoint key="LearnJleafTaskService"/>
  617.                 </send>
  618.             </case>
  619.             <case regex="erpjleafgl">
  620.                 <log level="custom">
  621.                     <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  622.                 </log>
  623.                 <send>
  624.                     <endpoint key="JLeafGlTaskService"/>
  625.                 </send>
  626.             </case>
  627.             <default>
  628.                 <log level="custom">
  629.                     <property name="LOGGER" value="*** COMMON SERVICE ***"/>
  630.                 </log>
  631.                 <send>
  632.                     <endpoint key="JLeafTaskService"/>
  633.                 </send>
  634.             </default>
  635.         </switch>
  636.         <log level="custom">
  637.             <property name="LOGGER" value="***** END TaskSequence *****"/>
  638.         </log>
  639.     </sequence>
  640. </definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement