<?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:parameters>
                <bm:parameter name="contract_lease_item_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="serial_number" dataType="java.lang.String" input="true" output="false"/>
                <bm:parameter name="start_date" dataType="java.lang.String" input="true" output="false"/>
                <bm:parameter name="end_date" dataType="java.lang.String" input="true" output="false"/>
                <bm:parameter name="user_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="session_id" dataType="java.lang.Long" input="true" output="false"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    CUS_GPS_PKG.GPS_GET_HISTORY
                    (
                        p_contract_lease_item_id=>${@contract_lease_item_id},
                        p_serial_number=>${@serial_number},
                        p_start_date=>${@start_date},
                        p_end_date=>${@end_date},
                        p_user_id=>${/session/@user_id},
                        p_session_id=>${/session/@session_id}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
