<?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="return_value" dataType="java.lang.String" input="false" output="true" required="true"/>
                <bm:parameter name="document_category" dataType="java.lang.String" input="true" output="false" required="true"/>
                <bm:parameter name="document_type" dataType="java.lang.String" input="true" output="false" required="true"/>
                <bm:parameter name="business_type" dataType="java.lang.String" input="true" output="false" required="true"/>
                <bm:parameter name="company_id" dataType="java.lang.Long" input="true" output="false" required="true"/>
                <bm:parameter name="operation_date" dataType="java.util.Date" input="true" output="false" required="true"/>
                <bm:parameter name="user_id" dataType="java.lang.Long" input="true" output="false" required="true"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    ${@return_value} := CUS_GPS_PKG.GET_GPS_DOC_NUMBER
                    (
                        p_document_category=>${@document_category},
                        p_document_type=>${@document_type},
                        p_business_type=>${@business_type},
                        p_company_id=>${/session/@company_id},
                        p_operation_date=>${@operation_date},
                        p_user_id=>${/session/@user_id}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
