<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="execute">
            <bm:parameters>
                <bm:parameter name="transaction_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="user_id" dataType="java.lang.Long" input="true" output="false"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    CSH_TRANSACTION_WFL_PKG.WORKFLOW_START
                    (
                        p_transaction_id=>${@transaction_id},
                        p_user_id=>${/session/@user_id},
                        p_type=>${@type});
                end;]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:parameters>
                <bm:parameter name="result_flag" output="true" outputPath="@result_flag"/>
                <bm:parameter name="msg" output="true" outputPath="@msg"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    CSH_WRITE_OFF_PKG.CHECK_WRITE_OFF_DATA
                    (
                        p_transaction_id=>${@transaction_id},
                        p_user_id=>${/session/@user_id},
                        p_result_flag =>${@result_flag},
                        p_msg=>${@msg});
                end;]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
