can not call apis multiple time from the front-end
Hello i am new to bonitasoft started working with company that uses this product.
i have to filter through data that requires to make multiple api calls so i wrote it in front-end (i do not know if using groovy script was better but i do not know) the way i do it is i make api calls with fetch in a loop.
the problem is that the response is delayed obviously and the application loads faster.
is there any way to fix this, i looked through the documentation but i could not find anything useful.
P.S i am using bonitasoft 7.8.4
Hello, could you give more information about your use case?
I'm trying to understand what you mean by trying to filter through the data and why that would require you to make multiple API calls.
I have an array and deppending of states of elements i have to get data from bpm api and depending on this data i have to assign state for it
Well i have already done logic and everything but the problem is that it returns promises and the page loads before promises can be resolved i tried to render the page after they were resolved with $q.all and then but still did not work
yes that is exactly what i am tring to do and the results that are not promises show up perfectly fine but the promises does not update even when it resolves also i tried to not render html untill promises resolves but that does not change anything
Thank you for the answer and yes i am currently working on custom rest api!