Hi everyone,
Could someone please let me know whether `a!startProcess_24r3` is synchronous or asynchronous? I am currently using this function in my code, but when I try to upgrade to the new `a!startProcess`, I see a "synchronous" parameter available. So, when I replace `a!startProcess_24r3` with `a!startProcess`, should I set "synchronous" to true or false?. Thanks in advance
Discussion posts and replies are publicly visible
The old version is async. But, you could use activity chaining to control when the call returns. This has changed with the new version. So, this is not just a one-one replacement.
Q1. So, my process model uses activity chaining all the way to the end. Given that my code uses `a!startProcess_24r3`, does this mean it works synchronously in this case?. Q2. I hope in my case when i change to new a!startProcess i need not to configure synchronous parameter to true right?
A1: Kind of. It really depends on chaining, process duration, number of nodes in the chain.
A2: I can't tell. You will have to investigate each and every sub process.
Some insights here: https://appian.rocks/2024/12/09/appian-244-insights/
Annoyingly, in doing this update they actually removed functionality that is no longer directly reproducible with the newer version - e.g. you could previously call a Start Process and determine exactly when it would return values to your interface by making use of intentional chaining and chain-breaking.
Now instead it either wants to wait the *entire* process duration (regardless of any chaining or attendedness), or the *entire* 30-second timeout, or alternatively, be *entirely* asynchronous (providing zero process details returned, even though the async version currently stalls until chaining is broken in the called process, which i believe is a bug).
I really wish they'd've given at least an alternate synchronicity option that reproduces the old behavior, because it was honestly quite a bit more flexible for some use cases.