<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1">
    <bm:operations>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
    	        BEGIN
    	            con_debt_exemption_req_pkg.create_debt_exemption(p_session_id => ${/session/@session_id},
    	            												 p_user_id => ${/session/@user_id},	
    	            												 p_company_id => ${/session/@company_id},
    	            												 p_contract_id => ${@contract_id},
    	            												 p_change_req_id => ${@change_req_id}
    	            												 );
    	        END;
	        ]]></bm:update-sql>
            <bm:parameters>
                <bm:parameter name="change_req_id" dataType="java.lang.Long" output="true" outputPath="@change_req_id"/>
            </bm:parameters>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                begin
                	con_debt_exemption_req_pkg.con_contract_copy(p_contract_id =>${@contract_id},
									                             p_session_id  =>${/session/@session_id},
									                             p_user_id     =>${/session/@user_id});
                end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
