<?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:update-sql><![CDATA[

                BEGIN
                    hls_journal_import_pkg.insert_hls_journal_tmp(p_user_id => ${/session/@user_id},
                                                      p_header_id => ${@header_id},
                                                      p_company_id => ${/session/@company_id},
                                                      p_count    =>${@v_count},
                                                      p_final_count    =>${@v_final_count},
                                                      p_template_type=>${@template_type}
                                                      );
                END;
            ]]></bm:update-sql>
            <bm:parameters>
                <bm:parameter inputPath="/session/@user_id"/>
                <bm:parameter inputPath="/session/@session_id"/>
                <bm:parameter inputPath="/session/@template_type"/>
                <bm:parameter name="v_final_count" dataType="java.lang.Long" input="false" output="true" outputPath="@v_final_count"/>
                <bm:parameter name="v_count" dataType="java.lang.Long" input="false" output="true" outputPath="@v_count"/>

            </bm:parameters>
        </bm:operation>
         <bm:operation name="update" >
                    <bm:update-sql><![CDATA[
                        BEGIN
                 hls_journal_import_pkg.init_other_journal_atm(p_session_id =>${/session/@session_id},
                        p_file_path       =>${@file_path},
                        p_file_name       =>${@file_name},
                        p_file_type      =>${@file_type},
                        p_file_length     =>${@file_length},
                        p_user_id         =>${/session/@user_id});
                        END;
                        ]]></bm:update-sql>
                </bm:operation>
    </bm:operations>
</bm:model>
