<?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="execute">
            <bm:parameters>
                <bm:parameter name="record_id" dataType="java.lang.Long" input="false" output="true"
                              outputPath="@record_id"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                BEGIN
                    cus_rent_trans_pently_pkg.create_rent_trans_pently_hd(p_contract_id=>${@contract_id},
                                                        p_user_id=>${/session/@user_id},
                                                        p_record_id=>${@record_id} );
                END;
                ]]>
            </bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                BEGIN
                    cus_rent_trans_pently_pkg.cancel_rent_trans_pently(p_contract_id=>${@contract_id},
                                                        p_user_id=>${/session/@user_id},
                                                        p_record_id=>${@record_id} );
                END;
                ]]>
            </bm:update-sql>
        </bm:operation>
        <bm:operation name="delete">
            <bm:update-sql><![CDATA[
                BEGIN
                    cus_rent_trans_pently_pkg.delete_rent_trans_pently(
                                                        p_user_id=>${/session/@user_id},
                                                        p_record_id=>${@record_id} );
                END;
                ]]>
            </bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
