轮询http端点,接收JSON响应,我希望一直轮询直到满足条件。我已经尝试过了,<until-successful failureExpression="#[json:status != 'COMPLETED']" maxRetries="5" secondsBetweenRetries="10" synchronous="true">
但这给了例外。
还请让我知道我的方案是否还有其他方法
将计算值分配给流量变量,并提供评估相应流量变量的条件。
<until-successful failureExpression="#[flowVars['testRetryCondition'] != 'COMPLETED']" maxRetries="5" secondsBetweenRetries="10" synchronous="true"> <processor-chain doc:name="Processor Chain"> <http:........./> <set-variable variableName="testRetryCondition" value="#[json:status != 'COMPLETED']" doc:name="set-invocation-status"/> </processor-chain> </until-successful>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句