Hello people, I have a question, please. When I run my .xaml everything goes well until I need to press on “Request my change”.
Instead of ending the process and getting “Thank you. May you be well.” in a message box, I am getting prompted to the “Choose an option and insert money” option that comes in the first message box.
The message box containing the thank you message only pops up if I run out of money. But I want my change back.
Hi @Federico_L Question is a bit unclear, but as per my understanding, instead of checking NextAction.equals(“Request my change”) you are doing NextAction.equals(“Get change”)
The problem is that when I debug the project and choose the “Buy a new drink” option, instead of offering me the options to buy a new drink, the process finishes and gives me the change back.
@Federico_L I didn’t quiet understand the solution you have given because the condition is checking for “Get change” whereas the options are entirely different. I might have missed something. But the code i am uploading is working for me, though i am not seeing all the exception scenarios handled, but i believe you are doing this for learning purpose so it should be fine. Only thing i have done is changing that condition. Vending Machine.xaml (23.1 KB)