簡體   English   中英

如何調用阻塞調解器結果以超出序列

[英]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>

[1] https://docs.wso2.com/display/ESB490/Loopback+Mediator

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM