<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT t.attribute_1,
       t.attribute_2,
       t.attribute_3,
       t.attribute_4,
       t.attribute_5,
       t.attribute_6,
       t.attribute_7,
       t.attribute_8,
       TRIM(REPLACE(SUBSTR(t.attribute_9, 2), ',', '')) attribute_9,
       t.attribute_10,
       t.attribute_11,
       t.attribute_12,
       t.attribute_13,
       t.attribute_14,
       t.attribute_15,
       TRIM(REPLACE(SUBSTR(t.attribute_16, 2), ',', '')) attribute_16
                FROM
                    fnd_interface_lines t
                WHERE
                    t.header_id   =${@header_id} AND
                    t.line_number > 5
                    order by line_number
            ]]></bm:query-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
            BEGIN
                hls_ebank_abc_new_pkg.save_import_data(p_header_id => ${@header_id},
                                                       p_batch_id => ${@batch_id},
                                                       p_company_id => ${/session/@company_id},
                                                       p_user_id => ${/session/@user_id});
            END;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
