<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="execute">
            <bm:parameters>
                <bm:parameter name="return_value" dataType="java.lang.String" input="false" output="true"/>
                <bm:parameter name="instance_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="user_id" dataType="java.lang.Long" input="true" output="false"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
            	declare
            	  v_business_rule_id number;
                begin
                	select br.business_rule_id 
                	into v_business_rule_id
                	from zj_wfl_business_rules br where br.business_rule_code = 'CON_PENALTY_EXEMPTION_RULE_1';
                    ${@return_value} := ZJ_WFL_BUSINESS_RULE_PKG.validate_business_rule
                    (
                        p_business_rule_id=>v_business_rule_id,
                        p_instance_id=>${@instance_id},
                        p_user_id=>${/session/@user_id}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
