Advertisement
aadddrr

WSO

Jul 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.65 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="RmaTaskService">
  178. <address uri="http://localhost:8082/axis2/services/RmaTaskService.RmaTaskServiceHttpEndpoint/execute"/>
  179. </endpoint>
  180. <endpoint name="AuthorizationService">
  181. <address uri="http://localhost:8082/axis2/services/AuthorizationService.AuthorizationServiceHttpEndpoint/execute"/>
  182. </endpoint>
  183. <endpoint name="JLeafFinanceTaskService">
  184. <address uri="http://localhost:8082/axis2/services/FinanceTaskService.FinanceTaskServiceHttpEndpoint/execute"/>
  185. </endpoint>
  186. <endpoint name="JLeafAuthenticationService">
  187. <address uri="http://localhost:8082/axis2/services/AuthenticationService.AuthenticationServiceHttpEndpoint/execute"/>
  188. </endpoint>
  189. <endpoint name="FinanceTaskService">
  190. <address uri="http://localhost:8082/axis2/services/FinanceTaskService.FinanceTaskServiceHttpEndpoint/execute"/>
  191. </endpoint>
  192. <endpoint name="JLeafLogisticTaskService">
  193. <address uri="http://localhost:8082/axis2/services/LogisticTaskService.LogisticTaskServiceHttpEndpoint/execute"/>
  194. </endpoint>
  195. <endpoint name="LearnTrTaskService">
  196. <address uri="http://localhost:8082/axis2/services/LearnTrTaskService.LearnTrTaskServiceHttpEndpoint/execute"/>
  197. </endpoint>
  198. <endpoint name="JLeafSalesTaskService">
  199. <address uri="http://localhost:8082/axis2/services/SalesTaskService.SalesTaskServiceHttpEndpoint/execute"/>
  200. </endpoint>
  201. <endpoint name="AddUserAuditService">
  202. <address uri="http://localhost:8082/axis2/services/AddUserAuditService.AddUserAuditServiceHttpEndpoint/execute"/>
  203. </endpoint>
  204. <endpoint name="AuthenticationService">
  205. <address uri="http://localhost:8082/axis2/services/AuthenticationService.AuthenticationServiceHttpEndpoint/execute"/>
  206. </endpoint>
  207. <endpoint name="JLeafInventoryTaskService">
  208. <address uri="http://localhost:8082/axis2/services/InventoryTaskService.InventoryTaskServiceHttpEndpoint/execute"/>
  209. </endpoint>
  210. <endpoint name="PurchasingTaskService">
  211. <address uri="http://localhost:8082/axis2/services/PurchasingTaskService.PurchasingTaskServiceHttpEndpoint/execute"/>
  212. </endpoint>
  213. <endpoint name="SalesTaskService">
  214. <address uri="http://localhost:8082/axis2/services/SalesTaskService.SalesTaskServiceHttpEndpoint/execute"/>
  215. </endpoint>
  216. <endpoint name="JLeafMasterTaskService">
  217. <address uri="http://localhost:8082/axis2/services/MasterTaskService.MasterTaskServiceHttpEndpoint/execute"/>
  218. </endpoint>
  219. <endpoint name="JLeafPosIntgrJleafTaskService">
  220. <address uri="http://localhost:8082/axis2/services/PosIntgrJleafTaskService.PosIntgrJleafTaskServiceHttpEndpoint/execute"/>
  221. </endpoint>
  222. <endpoint name="ApprovalTaskService">
  223. <address uri="http://localhost:8082/axis2/services/ApprovalTaskService.ApprovalTaskServiceHttpEndpoint/execute"/>
  224. </endpoint>
  225. <endpoint name="InventoryTaskService">
  226. <address uri="http://localhost:8082/axis2/services/InventoryTaskService.InventoryTaskServiceHttpEndpoint/execute"/>
  227. </endpoint>
  228. <endpoint name="JLeafCashBankTaskService">
  229. <address uri="http://localhost:8082/axis2/services/CashBankTaskService.CashBankTaskServiceHttpEndpoint/execute"/>
  230. </endpoint>
  231. <endpoint name="JLeafApprovalTaskService">
  232. <address uri="http://localhost:8082/axis2/services/ApprovalTaskService.ApprovalTaskServiceHttpEndpoint/execute"/>
  233. </endpoint>
  234. <endpoint name="JLeafAuthorizationService">
  235. <address uri="http://localhost:8082/axis2/services/AuthorizationService.AuthorizationServiceHttpEndpoint/execute"/>
  236. </endpoint>
  237. <endpoint name="ReportService">
  238. <address uri="http://localhost:8082/axis2/services/ReportService.ReportServiceHttpEndpoint/execute"/>
  239. </endpoint>
  240. <endpoint name="JLeafPurchasingTaskService">
  241. <address uri="http://localhost:8082/axis2/services/PurchasingTaskService.PurchasingTaskServiceHttpEndpoint/execute"/>
  242. </endpoint>
  243. <endpoint name="JLeafReportService">
  244. <address uri="http://localhost:8082/axis2/services/ReportService.ReportServiceHttpEndpoint/execute"/>
  245. </endpoint>
  246. <endpoint name="JLeafAddUserAuditService">
  247. <address uri="http://localhost:8082/axis2/services/AddUserAuditService.AddUserAuditServiceHttpEndpoint/execute"/>
  248. </endpoint>
  249. <endpoint name="TaskService">
  250. <address uri="http://localhost:8082/axis2/services/TaskService.TaskServiceHttpEndpoint/execute"/>
  251. </endpoint>
  252. <sequence name="JLeafAuthorizationSequence" trace="enable">
  253. <log level="custom">
  254. <property name="LOGGER" value="***** BEGIN AuthorizationSequence *****"/>
  255. </log>
  256. <send>
  257. <endpoint key="JLeafAuthorizationService"/>
  258. </send>
  259. <log level="custom">
  260. <property name="LOGGER" value="***** END AuthorizationSequence *****"/>
  261. </log>
  262. </sequence>
  263. <sequence name="UserAuditSequence" trace="enable">
  264. <log level="custom">
  265. <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY UserAuditProxy"/>
  266. </log>
  267. <log level="custom">
  268. <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  269. </log>
  270. <log level="custom">
  271. <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  272. </log>
  273. <log level="custom">
  274. <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  275. </log>
  276. <log level="custom">
  277. <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  278. </log>
  279. <log level="custom">
  280. <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  281. </log>
  282. <log level="custom">
  283. <property name="LOGGER" value="******** BEGIN UserAuditSequence ********"/>
  284. </log>
  285. <send>
  286. <endpoint key="AddUserAuditService"/>
  287. </send>
  288. <log level="custom">
  289. <property name="LOGGER" value="******** END UserAuditSequence ********"/>
  290. </log>
  291. </sequence>
  292. <sequence name="AuthenticationSequence" trace="enable">
  293. <log level="custom">
  294. <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY AuthenticateProxy"/>
  295. </log>
  296. <log level="custom">
  297. <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  298. </log>
  299. <log level="custom">
  300. <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  301. </log>
  302. <log level="custom">
  303. <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  304. </log>
  305. <log level="custom">
  306. <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  307. </log>
  308. <log level="custom">
  309. <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  310. </log>
  311. <log level="custom">
  312. <property name="LOGGER" value="******** BEGIN AuthenticationSequence ********"/>
  313. </log>
  314. <send>
  315. <endpoint key="AuthenticationService"/>
  316. </send>
  317. <log level="custom">
  318. <property name="LOGGER" value="******** END AuthenticationSequence ********"/>
  319. </log>
  320. </sequence>
  321. <sequence name="JLeafAuthenticationSequence" trace="enable">
  322. <log level="custom">
  323. <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY AuthenticateProxy"/>
  324. </log>
  325. <log level="custom">
  326. <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  327. </log>
  328. <log level="custom">
  329. <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  330. </log>
  331. <log level="custom">
  332. <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  333. </log>
  334. <log level="custom">
  335. <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  336. </log>
  337. <log level="custom">
  338. <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  339. </log>
  340. <log level="custom">
  341. <property name="LOGGER" value="******** BEGIN AuthenticationSequence ********"/>
  342. </log>
  343. <send>
  344. <endpoint key="JLeafAuthenticationService"/>
  345. </send>
  346. <log level="custom">
  347. <property name="LOGGER" value="******** END AuthenticationSequence ********"/>
  348. </log>
  349. </sequence>
  350. <sequence name="TaskSequence" trace="enable">
  351. <log level="custom">
  352. <property name="LOGGER" value="***** BEGIN TaskSequence *****"/>
  353. </log>
  354. <switch xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns3="http://org.apache.synapse/xsd" source="//result/header/module">
  355. <case regex="erpjleaf">
  356. <log level="custom">
  357. <property name="LOGGER" value="*** ERP JLEAF MASTER SERVICE ***"/>
  358. </log>
  359. <send>
  360. <endpoint key="MasterTaskService"/>
  361. </send>
  362. </case>
  363. <case regex="posintgrjleaf">
  364. <log level="custom">
  365. <property name="LOGGER" value="*** ERP JLEAF POS INTEGRATION SERVICE ***"/>
  366. </log>
  367. <send>
  368. <endpoint key="PosIntgrJleafTaskService"/>
  369. </send>
  370. </case>
  371. <case regex="erpjleafpurch">
  372. <log level="custom">
  373. <property name="LOGGER" value="*** ERP JLEAF PURCHASING SERVICE ***"/>
  374. </log>
  375. <send>
  376. <endpoint key="PurchasingTaskService"/>
  377. </send>
  378. </case>
  379. <case regex="erpjleafsales">
  380. <log level="custom">
  381. <property name="LOGGER" value="*** ERP JLEAF SALES SERVICE ***"/>
  382. </log>
  383. <send>
  384. <endpoint key="SalesTaskService"/>
  385. </send>
  386. </case>
  387. <case regex="erpjleafinv">
  388. <log level="custom">
  389. <property name="LOGGER" value="*** ERP JLEAF INV SERVICE ***"/>
  390. </log>
  391. <send>
  392. <endpoint key="InventoryTaskService"/>
  393. </send>
  394. </case>
  395. <case regex="awe">
  396. <log level="custom">
  397. <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  398. </log>
  399. <send>
  400. <endpoint key="ApprovalTaskService"/>
  401. </send>
  402. </case>
  403. <case regex="jlego-awe">
  404. <log level="custom">
  405. <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  406. </log>
  407. <send>
  408. <endpoint key="ApprovalTaskService"/>
  409. </send>
  410. </case>
  411. <case regex="erpjleaffin">
  412. <log level="custom">
  413. <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  414. </log>
  415. <send>
  416. <endpoint key="FinanceTaskService"/>
  417. </send>
  418. </case>
  419. <case regex="learnjleaf">
  420. <log level="custom">
  421. <property name="LOGGER" value="*** LEARNJLEAF SERVICE ***"/>
  422. </log>
  423. <send>
  424. <endpoint key="LearnJleafTaskService"/>
  425. </send>
  426. </case>
  427. <case regex="learntr">
  428. <log level="custom">
  429. <property name="LOGGER" value="*** LEARNTRANSACTION SERVICE ***"/>
  430. </log>
  431. <send>
  432. <endpoint key="LearnTrTaskService"/>
  433. </send>
  434. </case>
  435. <default>
  436. <log level="custom">
  437. <property name="LOGGER" value="*** COMMON SERVICE ***"/>
  438. </log>
  439. <send>
  440. <endpoint key="TaskService"/>
  441. </send>
  442. </default>
  443. </switch>
  444. <log level="custom">
  445. <property name="LOGGER" value="***** END TaskSequence *****"/>
  446. </log>
  447. </sequence>
  448. <sequence name="fault">
  449. <log level="full">
  450. <property name="MESSAGE" value="Executing default &quot;fault&quot; sequence"/>
  451. <property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
  452. <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
  453. </log>
  454. <drop/>
  455. </sequence>
  456. <sequence name="JLeafNewAuthenticationSequence" trace="enable">
  457. <log level="custom">
  458. <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY AuthenticateProxy"/>
  459. </log>
  460. <log level="custom">
  461. <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  462. </log>
  463. <log level="custom">
  464. <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  465. </log>
  466. <log level="custom">
  467. <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  468. </log>
  469. <log level="custom">
  470. <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  471. </log>
  472. <log level="custom">
  473. <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  474. </log>
  475. <log level="custom">
  476. <property name="LOGGER" value="******** BEGIN NewAuthenticationSequence ********"/>
  477. </log>
  478. <send>
  479. <endpoint key="JLeafNewAuthService"/>
  480. </send>
  481. <log level="custom">
  482. <property name="LOGGER" value="******** END NewAuthenticationSequence ********"/>
  483. </log>
  484. </sequence>
  485. <sequence name="JLeafUserAuditSequence" trace="enable">
  486. <log level="custom">
  487. <property name="LOGGER" value="INCOMMING MESSAGE :: PROXY UserAuditProxy"/>
  488. </log>
  489. <log level="custom">
  490. <property name="LOGGER : MESSAGE ID" expression="get-property('MessageID')"/>
  491. </log>
  492. <log level="custom">
  493. <property name="LOGGER : IP ADDRESS" expression="get-property('axis2','REMOTE_ADDR')"/>
  494. </log>
  495. <log level="custom">
  496. <property name="LOGGER : USER AGENT" expression="get-property('transport','User-Agent')"/>
  497. </log>
  498. <log level="custom">
  499. <property name="LOGGER : MESSAGE BODY" expression="$body"/>
  500. </log>
  501. <log level="custom">
  502. <property name="LOGGER : SYSTEM TIME" expression="get-property('SYSTEM_TIME')"/>
  503. </log>
  504. <log level="custom">
  505. <property name="LOGGER" value="******** BEGIN UserAuditSequence ********"/>
  506. </log>
  507. <send>
  508. <endpoint key="JLeafAddUserAuditService"/>
  509. </send>
  510. <log level="custom">
  511. <property name="LOGGER" value="******** END UserAuditSequence ********"/>
  512. </log>
  513. </sequence>
  514. <sequence name="AuthorizationSequence" trace="enable">
  515. <log level="custom">
  516. <property name="LOGGER" value="***** BEGIN AuthorizationSequence *****"/>
  517. </log>
  518. <send>
  519. <endpoint key="AuthorizationService"/>
  520. </send>
  521. <log level="custom">
  522. <property name="LOGGER" value="***** END AuthorizationSequence *****"/>
  523. </log>
  524. </sequence>
  525. <sequence name="main">
  526. <log/>
  527. <drop/>
  528. </sequence>
  529. <sequence name="JLeafTaskSequence" trace="enable">
  530. <log level="custom">
  531. <property name="LOGGER" value="***** BEGIN TaskSequence *****"/>
  532. </log>
  533. <switch xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns3="http://org.apache.synapse/xsd" source="//result/header/module">
  534. <case regex="erpjleaf">
  535. <log level="custom">
  536. <property name="LOGGER" value="*** ERP JLEAF MASTER SERVICE ***"/>
  537. </log>
  538. <send>
  539. <endpoint key="JLeafMasterTaskService"/>
  540. </send>
  541. </case>
  542. <case regex="posintgrjleaf">
  543. <log level="custom">
  544. <property name="LOGGER" value="*** ERP JLEAF POS INTEGRATION SERVICE ***"/>
  545. </log>
  546. <send>
  547. <endpoint key="JLeafPosIntgrJleafTaskService"/>
  548. </send>
  549. </case>
  550. <case regex="erpjleafpurch">
  551. <log level="custom">
  552. <property name="LOGGER" value="*** ERP JLEAF PURCHASING SERVICE ***"/>
  553. </log>
  554. <send>
  555. <endpoint key="JLeafPurchasingTaskService"/>
  556. </send>
  557. </case>
  558. <case regex="erpjleafsales">
  559. <log level="custom">
  560. <property name="LOGGER" value="*** ERP JLEAF SALES SERVICE ***"/>
  561. </log>
  562. <send>
  563. <endpoint key="JLeafSalesTaskService"/>
  564. </send>
  565. </case>
  566. <case regex="erpjleafcb">
  567. <log level="custom">
  568. <property name="LOGGER" value="*** ERP JLEAF CASHBANK SERVICE ***"/>
  569. </log>
  570. <send>
  571. <endpoint key="JLeafCashBankTaskService"/>
  572. </send>
  573. </case>
  574. <case regex="erpjleafinv">
  575. <log level="custom">
  576. <property name="LOGGER" value="*** ERP JLEAF INV SERVICE ***"/>
  577. </log>
  578. <send>
  579. <endpoint key="JLeafInventoryTaskService"/>
  580. </send>
  581. </case>
  582. <case regex="erpjleafgl">
  583. <log level="custom">
  584. <property name="LOGGER" value="*** ERP JLEAF GL SERVICE ***"/>
  585. </log>
  586. <send>
  587. <endpoint key="JLeafGlTaskService"/>
  588. </send>
  589. </case>
  590. <case regex="erpjleaflog">
  591. <log level="custom">
  592. <property name="LOGGER" value="*** ERP JLEAF GL SERVICE ***"/>
  593. </log>
  594. <send>
  595. <endpoint key="JLeafLogisticTaskService"/>
  596. </send>
  597. </case>
  598. <case regex="awe">
  599. <log level="custom">
  600. <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  601. </log>
  602. <send>
  603. <endpoint key="JLeafApprovalTaskService"/>
  604. </send>
  605. </case>
  606. <case regex="erpjleaffin">
  607. <log level="custom">
  608. <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  609. </log>
  610. <send>
  611. <endpoint key="JLeafFinanceTaskService"/>
  612. </send>
  613. </case>
  614. <case regex="learnjleaf">
  615. <log level="custom">
  616. <property name="LOGGER" value="*** LEARNJLEAF SERVICE ***"/>
  617. </log>
  618. <send>
  619. <endpoint key="LearnJleafTaskService"/>
  620. </send>
  621. </case>
  622. <case regex="learntr">
  623. <log level="custom">
  624. <property name="LOGGER" value="*** LEARNTRANSACTION SERVICE ***"/>
  625. </log>
  626. <send>
  627. <endpoint key="LearnTrTaskService"/>
  628. </send>
  629. </case>
  630. <case regex="erpjleafgl">
  631. <log level="custom">
  632. <property name="LOGGER" value="*** APPROVAL SERVICE ***"/>
  633. </log>
  634. <send>
  635. <endpoint key="JLeafGlTaskService"/>
  636. </send>
  637. </case>
  638. <case regex="rmajleaf">
  639. <log level="custom">
  640. <property name="LOGGER" value="*** RMA JLEAF INTEGRATION SERVICE ***"/>
  641. </log>
  642. <send>
  643. <endpoint key="RmaTaskService"/>
  644. </send>
  645. </case>
  646. <default>
  647. <log level="custom">
  648. <property name="LOGGER" value="*** COMMON SERVICE ***"/>
  649. </log>
  650. <send>
  651. <endpoint key="JLeafTaskService"/>
  652. </send>
  653. </default>
  654. </switch>
  655. <log level="custom">
  656. <property name="LOGGER" value="***** END TaskSequence *****"/>
  657. </log>
  658. </sequence>
  659. </definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement