Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <services-flow xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns="http://www.jleaf.org/jleaf/service-flow" schemaLocation="http://www.jleaf.org/jleaf/service-flow service-flow-schema.xsd">
- <service name="submitSalesOrder" output="outputDtoForSubmitSalesOrder">
- <informations>
- <description>Submit sales order</description>
- <info-in>
- <info name="result.header.userLoginId" description="user login id" type="Long" />
- <info name="result.header.roleLoginId" description="role login id" type="Long" />
- <info name="result.header.tenantLoginId" description="tenant login id" type="Long" />
- <info name="result.header.datetime" description="datetime" type="String" />
- <info name="result.header.sessionId" description="session id" type="String" />
- <info name="result.header.secureKey" description="secure key" type="String" />
- <info name="result.header.taskName" description="task name" type="String" />
- <info name="result.payload.id" description="sales order id" type="Long" />
- <info name="result.payload.version" description="version" type="Long" />
- <info name="result.payload.remark" description="remark" type="String" />
- </info-in>
- <info-out>
- <info name="result.id" type="Long" description="sales order id" />
- </info-out>
- </informations>
- <mod-dto output="inputDtoForSubmitSalesOrder">
- <key name="id" type="Long" from="${result.payload.id}" />
- <key name="version" type="Long" from="${result.payload.version}" />
- <key name="tenantLoginId" type="Long" from="${result.header.tenantLoginId}" />
- <key name="userLoginId" type="Long" from="${result.header.userLoginId}" />
- <key name="roleLoginId" type="Long" from="${result.header.roleLoginId}" />
- <key name="datetime" type="String" from="${result.header.datetime}" />
- </mod-dto>
- <mod-dto output="inputDtoForFindSalesOrderById">
- <key name="id" type="Long" from="${result.payload.id}" />
- </mod-dto>
- <mod-dto output="inputDtoForFindTotalSummarySalesOrder">
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- <key name="soId" type="Long" from="${result.payload.id}" />
- </mod-dto>
- <mod-dto output="inputDtoForFindSalesOrderInfoForApproval">
- <key name="sessionId" type="String" from="${result.header.sessionId}" />
- <key name="userId" type="Long" from="${result.header.userLoginId}" />
- <key name="roleId" type="Long" from="${result.header.roleLoginId}" />
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- <key name="datetime" type="String" from="${result.header.datetime}" />
- <key name="soId" type="Long" from="${result.payload.id}" />
- <key name="arCurrCode" type="String" from="IDR" />
- </mod-dto>
- <call-bf name="findSalesOrderById" input="${inputDtoForFindSalesOrderById}" output="outputDtoForFindSalesOrderById">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoForGetNotYetPaidDueInvoiceAmountForSoApproval">
- <key name="tenantId" type="Long" from="${outputDtoForFindSalesOrderById.tenantId}" />
- <key name="ouId" type="Long" from="${outputDtoForFindSalesOrderById.ouId}" />
- <key name="partnerId" type="Long" from="${outputDtoForFindSalesOrderById.partnerBillToId}" />
- </mod-dto>
- <mod-dto output="inputDtoForGetRemainingCreditAmountForSoApproval">
- <key name="tenantId" type="Long" from="${outputDtoForFindSalesOrderById.tenantId}" />
- <key name="ouId" type="Long" from="${outputDtoForFindSalesOrderById.ouId}" />
- <key name="partnerId" type="Long" from="${outputDtoForFindSalesOrderById.partnerBillToId}" />
- </mod-dto>
- <approval ref="salesOrder" action="SUBMIT" />
- <call-bt name="submitSalesOrder"
- output="outputDtoForSubmitSalesOrder"
- input="${inputDtoForSubmitSalesOrder}"
- approval-ref="salesOrder">
- <autonumber-ref />
- <onsuccess />
- <onerror />
- </call-bt>
- </service>
- <!-- This replace SalesOrderWorkflowAction -->
- <service name="approveSalesOrder" output="outputDtoForApproveSalesOrder">
- <informations>
- <description>Approve sales order document</description>
- <info-in>
- <info name="result.payload.id" type="Long" description="Sales order id" />
- <info name="result.payload.version" type="Long" description="Sales order version" />
- <info name="result.payload.remark" type="String" description="Workflow remark" />
- </info-in>
- <info-out />
- </informations>
- <mod-dto output="inputDtoForUpdateSalesOrderWorkflowStatus">
- <key name="id" type="Long" from="${result.payload.id}" />
- <key name="version" type="Long" from="${result.payload.version}" />
- <key name="tenantLoginId" type="Long" from="${result.header.tenantLoginId}" />
- <key name="userLoginId" type="Long" from="${result.header.userLoginId}" />
- <key name="roleLoginId" type="Long" from="${result.header.roleLoginId}" />
- <key name="datetime" type="String" from="${result.header.datetime}" />
- </mod-dto>
- <mod-dto output="inputDtoForFindSalesOrderById">
- <key name="id" type="Long" from="${result.payload.id}" />
- </mod-dto>
- <mod-dto output="inputDtoForFindTotalSummarySalesOrder">
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- <key name="soId" type="Long" from="${result.payload.id}" />
- </mod-dto>
- <mod-dto output="inputDtoForFindSalesOrderInfoForApproval">
- <key name="sessionId" type="String" from="${result.header.sessionId}" />
- <key name="userId" type="Long" from="${result.header.userLoginId}" />
- <key name="roleId" type="Long" from="${result.header.roleLoginId}" />
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- <key name="datetime" type="String" from="${result.header.datetime}" />
- <key name="soId" type="Long" from="${result.payload.id}" />
- <key name="arCurrCode" type="String" from="IDR" />
- </mod-dto>
- <call-bf name="findSalesOrderById" input="${inputDtoForFindSalesOrderById}" output="outputDtoForFindSalesOrderById">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoForGetNotYetPaidDueInvoiceAmountForSoApproval">
- <key name="tenantId" type="Long" from="${outputDtoForFindSalesOrderById.tenantId}" />
- <key name="ouId" type="Long" from="${outputDtoForFindSalesOrderById.ouId}" />
- <key name="partnerId" type="Long" from="${outputDtoForFindSalesOrderById.partnerBillToId}" />
- </mod-dto>
- <mod-dto output="inputDtoForGetRemainingCreditAmountForSoApproval">
- <key name="tenantId" type="Long" from="${outputDtoForFindSalesOrderById.tenantId}" />
- <key name="ouId" type="Long" from="${outputDtoForFindSalesOrderById.ouId}" />
- <key name="partnerId" type="Long" from="${outputDtoForFindSalesOrderById.partnerBillToId}" />
- </mod-dto>
- <approval ref="salesOrder" action="APPROVE" />
- <call-bt name="updateSalesOrderWorkflowStatus" output="outputDtoForApproveSalesOrder"
- input="${inputDtoForUpdateSalesOrderWorkflowStatus}" approval-ref="salesOrder">
- <autonumber-ref />
- <onsuccess />
- <onerror />
- </call-bt>
- </service>
- </services-flow>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement