<?xml version="1.0" encoding="UTF-8"?>

<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT h.bp_name, h.bp_code, h.bp_id
                FROM exp_emp_assign_e_v ee, hls_bp_master h
                WHERE ee.user_id = (SELECT zw.submitted_by
                FROM zj_wfl_workflow_instance zw
                WHERE zw.instance_id = ${/parameter/@instance_id})
                AND ee.unit_id = h.unit_id
                AND h.bp_category = 'AGENT'
                ]]>
            </bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>