英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论