<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="insert">
            <bm:update-sql><![CDATA[
            begin
				bgfl_oa_auto_config_pkg.bgfl_oa_auto_config_insert(p_config_code             =>${@config_code},
                                       							   p_procedure_before        =>${@procedure_before},
                                                                   p_description             =>${@description},
                                                                   p_procedure_after_approve =>${@procedure_after_approve},
                                                                   p_procedure_after_reject  =>${@procedure_after_reject},
                                                                   p_procedure_cancel        =>${@procedure_cancel},
                                                                   p_oa_parameter1_sql       =>${@oa_parameter1_sql},
                                                                   p_oa_parameter2_sql       =>${@oa_parameter2_sql},
                                                                   p_oa_parameter3_sql       =>${@oa_parameter3_sql},
                                                                   p_enabled_flag            =>${@enabled_flag},
                                                                   p_user_id                 =>${/session/@user_id});
			end;
			]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
            begin
				begin
				bgfl_oa_auto_config_pkg.bgfl_oa_auto_config_update(p_config_id               =>${@config_id},
                                       							   p_procedure_before        =>${@procedure_before},
                                                                   p_description             =>${@description},
                                                                   p_procedure_after_approve =>${@procedure_after_approve},
                                                                   p_procedure_after_reject  =>${@procedure_after_reject},
                                                                   p_procedure_cancel        =>${@procedure_cancel},
                                                                   p_oa_parameter1_sql       =>${@oa_parameter1_sql},
                                                                   p_oa_parameter2_sql       =>${@oa_parameter2_sql},
                                                                   p_oa_parameter3_sql       =>${@oa_parameter3_sql},
                                                                   p_enabled_flag            =>${@enabled_flag},
                                                                   p_user_id                 =>${/session/@user_id});
			end;
			end;
			]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
