<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: lixi  
    $Date: 2011-8-1 上午10:21:39  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    t1.assigned_type
                FROM
                    (SELECT
                        sa.assigned_type,
                        sa.instance_id,
                        pp.project_id
                    FROM
                        prj_project pp,
                        SDIC_WORKFLOW_ASSIGNED sa
                    WHERE
                        sa.instance_id = pp.wfl_instance_id AND
                        sa.user_id     = ${/session/@user_id} 
                    ) t1 #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="assigned_type"/>
    </bm:fields>
</bm:model>
