UntilSuccessful component to poll http endpoint till condition is met

后端 未结 1 515
鱼传尺愫
鱼传尺愫 2020-12-21 11:23

Polling http endpoint, receiving JSON response, I wish to keep polling till a condition is met. I have tried

相关标签:
1条回答
  • 2020-12-21 11:51

    assign the compute value to flow variable and provide condition evaluting the corresponding flow variable.

    <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>

    0 讨论(0)
提交回复
热议问题