【发布时间】:2016-06-14 16:15:44
【问题描述】:
我有以下 http 请求:
<http:request config-ref="FlowVarsHostAndPort" path="/rest/bpo/evento" method="POST" doc:name="Envia movimentacoes para Elaw Correspondente">
<http:request-builder>
<http:header headerName="Content-Type" value="application/json"/>
</http:request-builder>
</http:request>
此服务在 foreach 中,当它返回 200 时它很好,但是当它返回 404 时它会抛出异常并且流程停止,我需要当服务返回给我 404 时我查看有效负载并确定它是否需要继续执行流程,我该如何实现?
我尝试使用 catch 异常策略但没有成功。
ps:当我在寻找不存在的资源时,服务将返回 404,响应示例:
{
"processo": "0009843-63.2016.8.13.0301",
"mensagem": "Não foi possivel encontrar o processo"
}
【问题讨论】:
标签: mule