Posted: Fri Dec 14, 2018 10:47 am Post subject: Sublow using REST Async RequestLoses Environment Memory Tree
Master
Joined: 08 Apr 2011 Posts: 292
To all,
Mainflow>subflow>Environment_Exists>REST Async Request>
>REST Asyn Response>Environment_Is_Lost>Compute>Set Environment.Var1>Come out of Subflow>Mainflow has Env.Var1 but original Environment is lost.
So as you can see I go from a mainflow to a subflow which sends some Environment Variables into the subflow. That all works. I use the Environment Variables to set the REST Async Request, make the call, get a Response. In the case where I get a 204 (No Content) or a 200 I set an Environment Variable for the customer number. Then back in the mainflow I use the check to see if the Customer Number exists in a Filter node. If it exists I return the response. If there is no customer number I need to go to the system of record using the original values from the Environment Tree. For some reason the original environment variables are lost in the subflow once the REST Async Request node is called. How can I recover or copy those original Environment memory tree values so I can retrieve them after the subflow executes.
I need a couple of hints about how to persist those values so I can use them when the subflow doesn't return a 200 with the customer number present.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum