<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: syj 
    $Date: 2016年3月7日16:14:36
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="execute">
            <bm:parameters>
                <bm:parameter name="source_type" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@source_type"/>
                <bm:parameter name="record_id" dataType="java.lang.Long" input="false" output="true" outputPath="/parameter/@record_id"/>
                <bm:parameter name="notice_title" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@notice_title"/>
                <bm:parameter name="notice_message" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@notice_message"/>
                <bm:parameter name="title" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@title"/>
                <bm:parameter name="description" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@description"/>
                <bm:parameter name="touser" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@touser"/>
                <bm:parameter name="instance_id" dataType="java.lang.Long" input="false" output="true" outputPath="/parameter/@instance_id"/>
                <bm:parameter name="rcpt_record_id" dataType="java.lang.Long" input="false" output="true" outputPath="/parameter/@rcpt_record_id"/>
                <bm:parameter name="node_id" dataType="java.lang.Long" input="false" output="true" outputPath="/parameter/@node_id"/>
                <bm:parameter name="node_seq" dataType="java.lang.Long" input="false" output="true" outputPath="/parameter/@node_seq"/>
                <bm:parameter name="submitted_by" dataType="java.lang.Long" input="false" output="true" outputPath="/parameter/@submitted_by"/>
                <bm:parameter name="user_id" dataType="java.lang.Long" input="false" output="true" outputPath="/parameter/@user_id"/>
                <bm:parameter name="wx_wfl_service" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@wx_wfl_service"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
        		BEGIN
        			by_hls_wx_core_pkg.push_message(
        			     p_source_type =>${@source_type},
                         p_record_id   =>${@record_id},
                         p_notice_title     =>${@notice_title},
                         p_notice_message     =>${@notice_message},
                         p_title       =>${@title},
                         p_description =>${@description},
                         p_touser      =>${@touser},
                         p_instance_id =>${@instance_id},
                         p_rcpt_record_id=>${@rcpt_record_id},
                         p_node_id       =>${@node_id},
                         p_node_seq       =>${@node_seq},
                         p_submitted_by       =>${@submitted_by},
                         p_user_id		=>${@user_id},
                         p_wx_wfl_service      =>${@wx_wfl_service}
        			);
        		END;
			]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="insert">
            <bm:update-sql><![CDATA[
                BEGIN
        			by_hls_wx_core_pkg.push_success(
                         p_record_id   =>${@record_id},
                         p_user_id     =>-1
        			);
        		END;
            ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                BEGIN
        			by_hls_wx_core_pkg.push_error(
                         p_record_id        =>${@record_id},
                         p_error_message	=>${@error_message},
                         p_user_id          =>-1
        			);
        		END;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
