Asynchronous behaviour of action chain elements.
Summary
The assignment action behaves strangely and does not wait for the functions to return result.Content
Team I am facing the problem of irregular index as the assignment operation which was supposed to happen sequentially is behaving odd and going on updating without even completing the succeeding operations. Like I am keeping sequence var to generate an unique index for my array and then add a row with that data. Now sometimes if I am adding multiple rows simultaneously it is giving me wrong indexes.
For example: I clicked on add button 4 times it should ideally give me -1, -2,-3,-4 as index in the adp but what is happening is -1,-2,-4,-9 or else -1,-2,-2,-9......... By the time it assigns the index to the adp the index variable has updated multiple times by itself while the action flow completes other actions. How can we handle this strange behaviour inside the action chain would be helpful.