<?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="xml" databaseType="VARCHAR2" datatype="java.lang.String" output="true" outputPath="/parameter/@xml" />
            </bm:parameters>
            <bm:update-sql><![CDATA[
                declare
                v_xml varchar2(32767);
                begin
                v_xml := ds_doodream_support_pkg.et_submit_approveline(
                    p_et_agreement_id          =>${@et_agreement_id},
                    p_user_id               =>${/session/@user_id}
                );
                ${@xml} := v_xml;
                end;
                ]]>
            </bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
