<?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 (case
                    when trunc(sysdate) <= to_date(${@lease_start_date}, 'yyyy-MM-dd') + 2 and trunc(sysdate) >= to_date(${@lease_start_date}, 'yyyy-MM-dd')
                        then
                     'Y'
                    else
                     'N'
                  end) lease_flag
             from dual
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="lease_flag"/>
    </bm:fields>
</bm:model>