<?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 v.*
            from (
              SELECT V.COMPANY_ID,
				   V.COMPANY_CODE,
				   V.COMPANY_SHORT_NAME,
				   V.COMPANY_FULL_NAME,
				   V.COMPANY_TYPE
			  FROM FND_COMPANIES_VL V
              ) v  
	    #WHERE_CLAUSE# order by  v.COMPANY_ID]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Double" physicalName="COMPANY_ID"/>
        <bm:field name="company_code" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="COMPANY_CODE" prompt="COMPANY_CODE"/>
        <bm:field name="company_short_name" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="COMPANY_SHORT_NAME" prompt="EXP_WF_APP_RULE.COMPANY_NAME"/>
        <bm:field name="company_full_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMPANY_FULL_NAME"/>
        <bm:field name="company_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMPANY_TYPE"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field name="company_code" queryExpression="v.company_code=${@company_code}"/>
        <bm:query-field name="company_short_name" queryExpression="v.company_short_name=${@company_short_name}"/>
    </bm:query-fields>
</bm:model>
