I have a sort of library system where users check things in and out. When they do this, I'm supposed to have the forms process print a ticket.
The only way I could figure out how to do this was to return a variable called Print_TicketID from the workflow back to the form. This variable gets set with the ID of the new ticket I just created in my Sql Server database. I am passing a variable of this name to the workflow from the form. It's initially set to 0.
I have "Automatically Load the next task if the same person is assigned to it" checked.
I have "Wait for the workflow to finish before proceeding" checked.
Then, in the On Completion Event, I am redirecting the process to go back to the same url, but I'm adding a querystring variable on the end of the url. Example:
beginningofurl/Forms/GageCheckout?Print_TicketID={/dataset/Print_TicketID}
It comes back to the form with Print_TicketID=0, (the original value) even though the workflow has dutifully returned the updated value. (See pics.)
I am assuming it's going to the new url before the workflow has updated the variable? Why would it do this? What's the point of being able to set a variable if your forms process doesn't see it?
The weird thing is this: I swear this USED to work. (This project stalled for a few months.) I swear this worked before!! What's changed?