<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                select
                   csh_write_off_pkg.query_ifrs9_col_flag(p_period_name => ${/parameter/@period_name},
                                                          p_user_id => ${/session/@user_id}) flag
				  from dual
            ]]></bm:query-sql>
        </bm:operation>
        <bm:operation name="execute">
            <bm:parameters>
                <bm:parameter name="finish_flag" input="false" output="true" outputPath="@job_finish_flag"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
             begin
                contract_item_query_pkg.get_job_finish_flag(p_period_name =>${@period_name} ,
                                                            p_finish_flag => ${@finish_flag} ,
                                                            p_user_id     =>${/session/@user_id} );

             end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="flag" databaseType="varchar2" datatype="java.lang.String"/>
    </bm:fields>
</bm:model>
