Advertisement
aadddrr

Untitled

Apr 3rd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.92 KB | None | 0 0
  1. <!-- This replace SalesOrderWorkflowAction -->
  2.     <service name="approveSalesOrder" output="outputDtoForApproveSalesOrder">
  3.         <informations>
  4.             <description>Approve sales order document</description>
  5.             <info-in>
  6.                 <info name="result.payload.id" type="Long" description="Sales order id" />
  7.                 <info name="result.payload.version" type="Long" description="Sales order version" />
  8.                 <info name="result.payload.remark" type="String" description="Workflow remark" />
  9.             </info-in>
  10.             <info-out />
  11.         </informations>
  12.         <mod-dto output="inputDtoForUpdateSalesOrderWorkflowStatus">
  13.             <key name="id" type="Long" from="${result.payload.id}" />
  14.             <key name="version" type="Long" from="${result.payload.version}" />
  15.  
  16.             <key name="tenantLoginId" type="Long" from="${result.header.tenantLoginId}" />
  17.             <key name="userLoginId" type="Long" from="${result.header.userLoginId}" />
  18.             <key name="roleLoginId" type="Long" from="${result.header.roleLoginId}" />
  19.             <key name="datetime" type="String" from="${result.header.datetime}" />
  20.         </mod-dto>
  21.         <mod-dto output="inputDtoForFindSalesOrderById">
  22.             <key name="id" type="Long" from="${result.payload.id}" />
  23.         </mod-dto>
  24.         <mod-dto output="inputDtoForFindTotalSummarySalesOrder">
  25.             <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
  26.             <key name="soId" type="Long" from="${result.payload.id}" />
  27.         </mod-dto>
  28.        
  29.         <mod-dto output="inputDtoForFindSalesOrderInfoForApproval">
  30.             <key name="sessionId" type="String" from="${result.header.sessionId}" />
  31.             <key name="userId" type="Long" from="${result.header.userLoginId}" />
  32.             <key name="roleId" type="Long" from="${result.header.roleLoginId}" />
  33.             <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
  34.             <key name="datetime" type="String" from="${result.header.datetime}" />
  35.             <key name="soId" type="Long" from="${result.payload.id}" />
  36.             <key name="arCurrCode" type="String" from="IDR" />
  37.         </mod-dto>
  38.        
  39.         <mod-dto output="inputDtoForGetNotYetPaidDueInvoiceAmountForSoApproval">
  40.             <key name="tenantId" type="Long" from="${inputDtoForFindSalesOrderById.tenantId}" />
  41.             <key name="ouId" type="Long" from="${inputDtoForFindSalesOrderById.ouId}" />
  42.             <key name="partnerId" type="Long" from="${inputDtoForFindSalesOrderById.partnerId}" />
  43.         </mod-dto>
  44.        
  45.         <mod-dto output="inputDtoForGetRemainingCreditAmountForSoApproval">
  46.             <key name="tenantId" type="Long" from="${inputDtoForFindSalesOrderById.tenantId}" />
  47.             <key name="ouId" type="Long" from="${inputDtoForFindSalesOrderById.ouId}" />
  48.             <key name="partnerId" type="Long" from="${inputDtoForFindSalesOrderById.partnerId}" />
  49.         </mod-dto>
  50.        
  51.         <approval ref="salesOrder" action="APPROVE" />
  52.         <call-bt name="updateSalesOrderWorkflowStatus" output="outputDtoForApproveSalesOrder"
  53.             input="${inputDtoForUpdateSalesOrderWorkflowStatus}" approval-ref="salesOrder">
  54.             <autonumber-ref />
  55.             <onsuccess />
  56.             <onerror />
  57.         </call-bt>
  58.     </service>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement