How could we paralelize two different calls?
Hello,
We are developing a BP where we would need to call at the same time to get appointments in two external systems. So then, we would need two threads, one for primary care appointments, and other for specialist appointments . We need to paralelize both calls because of both of them require some time and we would need to shorten it as much as possible.
We are currently using a flow:
And inside the flow we have two sequences, the first one for specialists appointments, where we get them with a rest operation, then transform the json string to a object, and then we convert it to match the primary care appointments format:
And then, in other sequence we have the primary cade appointments, where we get them with a soap operation, parse it to xml and return:
However we do have a question, how do we make sure that both calls are being held concurrently?
Because of if we see the trace, it is being requested the specialists appointments and then the primary appointments, (just miliseconds of difference)
To be precise, the behaviour we would need is to send both calls without having to wait for getting the outer system answer.
How could we paralelize two different calls?
We have read: