HTTP任务在Fowable中的行为

huangapple go评论54阅读模式
英文:

Behavior of HTTP Task in Fowable

问题

我有三个 HTTP 任务,依次称为 HTTP 任务 1、HTTP 任务 2 和 HTTP 任务 3。
我想了解 HTTP 任务的行为方式。

Flowable 是否会异步调用这三个 HTTP 任务,而不会关心先前调用的 HTTP 任务的响应?

还是 Flowable 会等待 HTTP 任务 1 完成(收到响应)后才调用 HTTP 任务 2,以此类推?

我有一个场景,需要依次调用三个 API,但我需要确保在第一个 API 完成后才调用其他 API。

英文:

I have three http tasks one-by-one say Http Task 1, Http Task 2, Http Task 3.
I want to understand how HTTP tasks behaves.

does flowable calls all these three Http tasks asynchronously without bothering the response of the previously called Http Tasks?

Or will the flowable wait for the Http Task 1 to complete (to receive response) before calling the Http Task 2 and so on?

I have a scenario where I need to call three APIs one-by-one, but I need to make sure, I am calling the other APIs after the completion of the first API.

答案1

得分: 1

Flowable执行同步请求。底层实现是Apache的Http Client。配置选项在此处有文档:https://www.flowable.com/open-source/docs/bpmn/ch07b-BPMN-Constructs/#http-task

您将能够按预期依次调用三个API。

英文:

Flowable performs a synchronous request. The underlying implementation is Apache's Http Client. Configuration options are documented here: https://www.flowable.com/open-source/docs/bpmn/ch07b-BPMN-Constructs/#http-task

You will be able to call the three APIs one after another as expected.

huangapple
  • 本文由 发表于 2023年2月24日 01:03:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/75548033.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定