csh_currency_exchange.lsc 1.13 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true">
    <a:init-procedure>
        <p:switch test="/parameter/@transaction_num">
            <p:case value="null">
                <a:model-update model="csh.CSH550.csh_transaction_get_number"/>
            </p:case>
        </p:switch>
        <batch-apply sourcePath="/parameter/details">
            <p:switch test="@current_parameter/@_status">
                <p:case value="update">
                    <a:model-update model="csh.CSH550.csh_transaction_currency_exchange_save"/>
                </p:case>
                <p:case value="insert">
                    <a:model-insert model="csh.CSH550.csh_transaction_currency_exchange_save"/>
                </p:case>
            </p:switch>
        </batch-apply>
        <p:switch test="/parameter/@transaction_id">
            <p:case value="null">
                <a:model-update model="csh.CSH550.csh_transaction_save_twin_trx_id"/>
            </p:case>
        </p:switch>
    </a:init-procedure>
    <a:service-output output="/parameter"/>
</a:service>