Hello There,
I have a SAIL form with a button that starts a small process model via a!startProcess(). This model is set to chain from start to finish however the button is returning the "onSuccess" condition before the process instance completes.
However, when I use the exact same parameters on a SAIL form with a!startProcessLink (ie: same values for the ProcessModel and Parameters arguments) the process instance chains as expected and does not return until the instance is complete.
I am depending on this background process to update data and then fetching the updated results on the SAIL form inside a with()
Is this discrepancy the expected behavior?
A couple notes:
Discussion posts and replies are publicly visible
Hi Jpheh, As per the documentation below,That is an expected behaviour. docs.appian.com/.../Ways_to_Start_a_Process_From_a_Process.html
In the a!startProcess()
onSuccess: you can get the pv values from the function variable fv!processInfo
for more info please refer documentation
docs.appian.com/.../Start_Process_Smart_Service.html
Could you please let us know your detailed requirement? we will try to suggest the possible approaches.
In the documentation they clearly mentioned the point like,
If a chained flow encounters an attended activity, the activity will be assigned to the user that the Start Process smart service was run as, but it will not open the associated form.
The start process link is introduced in latest version of Appian, I could not remember which version of Appian they have introduced. But I believe the a!startProcess is available before a!startProcessLink. They come up with the functionality where the user can trigger a process from SAIL with chained forms.