[英]How to call Sequence mediator inside the script mediator in WSO2 ESB
[英]How to call blocking mediator results to out sequence
我在 WSO2 Esb 代理服务中遇到呼叫阻塞调解器的问题。我目前正在使用 wso2 4.9.0。 我将在调用介体下使用多个 WSO2 ESB 序列介体(使用过滤器语句)。 这将按照 XML 标记格式循环。 根据结果。 我需要根据这个 xml 标签值调用序列。
这是我的顺序:
<call blocking="true">
<endpoint key="CommonEPR"/>
</call>
<filter regex="02" source="json-eval($.responsecode) xmlns:ns="http://org.apache.synapse/xsd">
<then>
<log level="full">
<property
name="CALLCommonAPI" value="MESSAGE"/>
</log>
<sequence name="CommonOutSequence">
<log/>
<out>
<sequence key="CommonOutSequence"/>
<send/>
</out>
</sequence>
</then>
</filter>
我需要的是将结果发送到 CommonOutSequence,是的,我知道它不可能在呼叫中介发送到序列中。任何人都可以告诉我使用呼叫中介发送 Sequence 的可能方法。
我不是很清楚你的要求,但如果你想在某个时候移到流出,你可以调用<loopback/>
中介器 [1]。
根据第一条评论更新:
这不行吗?
<filter regex="02" source="json-eval($.responsecode) xmlns:ns="http://org.apache.synapse/xsd">
<then>
<log level="full">
<property name="CALLCommonAPI" value="MESSAGE"/>
</log>
<sequence key="CommonOutSequence"/>
<respond/>
</then>
</filter>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.