代码之家  ›  专栏  ›  技术社区  ›  ray

mule json有效负载空签入选择筛选器

  •  0
  • ray  · 技术社区  · 7 年前

    <choice doc:name="If Payload is Null">
        <when expression="#[payload == empty]">
            <mule-logger-module:logger-exception message="Null Payload" doc:name="Log Error"/>
        </when>
        <otherwise>
            <mule-logger-module:log-default message="Payload Received" type="EXIT" doc:name="Log End"/>
        </otherwise>
    </choice>
    
    1 回复  |  直到 7 年前
        1
  •  1
  •   Ryan Carter    7 年前

    <json:json-to-object-transformer
                returnClass="java.util.HashMap[]" doc:name="JSON to Object" />
    <choice doc:name="If Payload is Null">
    <when expression="#[payload == empty]">
        <mule-logger-module:logger-exception message="Null Payload" doc:name="Log Error"/>
    </when>
    <otherwise>
        <mule-logger-module:log-default message="Payload Received" type="EXIT" doc:name="Log End"/>
    </otherwise>
    

    推荐文章