<?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="change_req_id" dataType="java.lang.Long" input="false" output="true"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                DECLARE
                v_change_req_id NUMBER;
                BEGIN
                           cus_con_change_req_pkg.create_change_req(p_contract_id=>${@contract_id},
                                                                    p_req_date=>to_date(${@req_date},'YYYY-MM-DD'),
                                                                    p_req_type=>${@req_type},
                                                                    p_description=>${@description},
                                                                    p_user_id=>${/session/@user_id},
                                                                    p_simulation_flag=>${@simulation_flag},
                                                                    p_ref_v01=>${@ref_v01},
                                                                    p_change_req_id=>v_change_req_id );
                ${@change_req_id}:=v_change_req_id;
                END;
                ]]>
            </bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
