0

I have a default catch exception strategy for my entire flow/subflows. However, I'd like to be able to tell what component/endpoint threw an exception so I can try to restart the flow at that point (I have yet to figure out how to do that as well.)

Is there any easy way to tell what component/endpoint threw the exception, and be able to tell if it was in a foreach, and at what point (by looking at the "counter" variable.)

Thanks!

4

1 回答 1

0

您可以在流程开始时设置一个变量,如下所示:

<set-variable variableName="flowName" value="Your_flow_name"/>

#[flowName]并像在您的异常策略中一样获取流名称。

编辑:

要触发一个流,创建一个 java 组件实现Callable接口,从contextgetMuleClient和使用sendordispatch方法将有效负载发送到流。Send导致 MuleClient 等待响应而dispatch没有。

更多信息:http: //www.mulesoft.org/documentation/display/current/Using+the+Mule+Client

于 2014-04-25T13:51:33.457 回答