简体   繁体   中英

How to stop asynchronous flow in mule

我试图通过在groovy脚本中使用muleContext.registry.lookupFlowConstruct('')。stop()命令来停止mule中的异步流,但是即使它仍然触发了流之后,我还是要突然停止它。

you can try

eventContext.setStopFurtherProcessing(true)

or

<expression-component>
    app.registry.yourflowName.stop();
  </expression-component>

if you are looking to stop the messages to go to your flow, you can also use filters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM