Hello,
I am upgrading a web API that was created sometime ago, it has all the process nodes in one very big process.
I have managed to split it up to smaller sub-processes successfully, but the thing is that after splitting it to multiple process I started to add more functionalities (as this was the main goal in the first place), but once all the new functionalities were integrated the web API started "act out" or become unstable, where the web API sends a response back before the whole process reaches an end and before the "response body" variable is filled so I keep getting an error saying that function toJson() can't convert null data, I should mention that I have all of my nodes in all of the processes and sub-processes chained.
my question is: is there a resource limit or time limit (keep in mind the API requires about 1-3 seconds to complete) and if so how can I modify this.
------------------------------------------------------
helpful screenshots:
Web API on success part
abnormal response after adding additional functionality
sub process configurations (I know that i pass the statusCode & responsebody by ref and also in the output section I was desperate and trying everything)
I've also tried starting sub-processes with the "enable activity chaining into all initial nodes in the sub-process" check box enabled but with no avail.
I would really appreciate any thoughts that you guys might have.
thank you.
Discussion posts and replies are publicly visible
I am most definitely sure it's a resource issue, since I've just deleted some of the functionalities and it now returns the output successfully.
how can I increase this resource limit?
There is a hard limit on the number of chained nodes and a time limit on the duration of that chain.
If things take too long, you might need to switch to an asynchronous model. Return only an identifier on the initial call and create another API to get status and results later.
hey Stefan, would you please link to more resources that I can read so I can gain more insight on this topic.
Thank you.
docs.appian.com/.../Process_Model_Recipes.html
Thank you Stefan so much, this was so helpful.
just for the record, I've solved my issue by doing some restructuring and minimized the number of nodes to the absolute minimum.
You are welcome :-)