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