We're building arrays (to be used in JavaScript for lookup tables) and they are loosing their value after a Wait node (set to not keep active). Is there a solution to this?
It's probably being stored as a string in the database, but since it's an object, it might be stored as the string "[Object]" when the Wait node is entered. You could possibly stringify the array and store it in a PfiFileStorage record, then read it back and parse the string back into an array after the Wait node.
As noted in the documentation only certain variables are persisted when a flow resumes after the user action wait is over. I suspect if you declare your array on the start node (it is fine if defaults to an empty array) it'll be persistent and restored when the flow resumes.
If you declare in the start node, then modify in an assign node JS expression, you'd probably need to also reassign the array value in a variable assignment after the expression for that to work.
It is declared on the Start node and still isn't consistent.
I think this is the solution, but I might open a ticket with Infor. Thanks