<?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 ep.position_code
        From exp_employees e, exp_employee_assigns ea, exp_org_position ep
       Where e.employee_id = ea.employee_id
         And ea.position_id = ep.position_id
         And nvl(e.enabled_flag, 'N') = 'Y'
         And nvl(ea.enabled_flag, 'N') = 'Y'
         And nvl(ep.enabled_flag, 'N') = 'Y'
         And nvl(ea.primary_position_flag, 'N') = 'Y'
         And e.employee_id = (Select t.employee_id
                                From sys_user t
                               Where t.user_id = ${/session/@user_id})
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>

</bm:model>
