Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- 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>
- <mod-dto output="inputDtoForGetNotYetPaidDueInvoiceAmountForSoApproval">
- <key name="tenantId" type="Long" from="${inputDtoForFindSalesOrderById.tenantId}" />
- <key name="ouId" type="Long" from="${inputDtoForFindSalesOrderById.ouId}" />
- <key name="partnerId" type="Long" from="${inputDtoForFindSalesOrderById.partnerId}" />
- </mod-dto>
- <mod-dto output="inputDtoForGetRemainingCreditAmountForSoApproval">
- <key name="tenantId" type="Long" from="${inputDtoForFindSalesOrderById.tenantId}" />
- <key name="ouId" type="Long" from="${inputDtoForFindSalesOrderById.ouId}" />
- <key name="partnerId" type="Long" from="${inputDtoForFindSalesOrderById.partnerId}" />
- </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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement