<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:ns2="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                BEGIN
                    hls_doc_file_templet_pkg.office_insert_fnd_atm(
                    	p_record_id      =>${@record_id},
                        p_table_name     =>${@table_name},
                        p_table_pk_value =>${@content_id},
                        p_file_name      =>${@file_name},
                        p_file_path      =>${@file_path},
                        p_user_id        =>${/session/@user_id}
                    );	
                END;
            ]]></bm:update-sql>
            <bm:parameters>
                <bm:parameter name="record_id" dataType="java.lang.Double" output="true" outputPath="/parameter/@record_id"/>
             </bm:parameters>
        </bm:operation>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
                BEGIN
                    hls_doc_file_templet_pkg.office_insert_fnd_atm_new(
                        p_table_name     =>${@table_name},
                        p_table_pk_value =>${@content_id},
                        p_file_name      =>${@file_name},
                        p_file_path      =>${@file_path},
                        p_user_id        =>nvl(${@user_id},${/session/@user_id}),
                        p_source_type   =>${@source_type},
                        p_file_size    =>${@file_size},
                        p_file_type_code =>${@file_type_code},
                        p_mime_type     => ${@mime_type}
                    );
                END;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
