<?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
                    hls_doc_file_templet_pkg.get_atm_access_token( p_attachment_id =>${@attachment_id}, p_user_id =>${/session/@user_id}) access_token
                FROM dual
            ]]></bm:query-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                BEGIN
                    hls_doc_file_templet_pkg.upd_atm_access_token( p_attachment_id =>${@attachment_id},p_access_type =>${@access_type}, p_user_id =>${/session/@user_id});
                END;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
