<?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
	            	leg_legal_content_pkg.leg_content_print(p_content_id  =>${@content_id},
	            											p_file_name   =>${@file_name},
							                                p_file_path   =>${@file_path},
							                                p_type        =>${@type},
							                                p_user_id     =>${/session/@user_id});
	            end;
	        ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
	            begin
	            	leg_legal_content_pkg.insert_legal_content_tmp(p_session_id  =>${/session/@session_id},
	            											p_law_id	=>${@law_id},
	            											p_contract_id	=>${@contract_id},
	            											 p_function_code =>${@functioncode},
	            											 p_clause_usage	=>${@clause_usage},
							                                p_user_id     =>${/session/@user_id});
	            end;
	        ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="delete">
            <bm:update-sql><![CDATA[
	            begin
	            	leg_legal_content_pkg.before_create_content(p_session_id  =>${/session/@session_id},
							                                    p_user_id     =>${/session/@user_id});
	            end;
	        ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
