I am trying to save a room for a critical patient for after he/she completes getting diagnostics work. I want my patient to be escorted to their old room, but I want to account for the possibility of using a different shared asset. flowhelp.png
I created the label RoomType and assigned values 1, 2, 3. I thought I could manage destination by Object by case, using the case function: token.RoomType. I tried to set up the cases with getlastacquiredresource("Trauma Room",current), getlastacquiredresource("Standard Room",current), and getlastacquiredresource("Rooms",current) respectively, but I have been getting the following errors:
"Flexscript ErrorMODEL:/Tools/ProcessFlow/CriticalPatients/Escort Patient~8>variables/destinationRef Line 14Incorrect string type for parameter 1 in call to command getlastacquiredresource, expecting node Flexscript ErrorMODEL:/Tools/ProcessFlow/CriticalPatients/Escort Patient~8>variables/destinationRef Line 15Incorrect string type for parameter 1 in call to command getlastacquiredresource, expecting node Flexscript ErrorMODEL:/Tools/ProcessFlow/CriticalPatients/Escort Patient~8>variables/destinationRef Line 16Incorrect string type for parameter 1 in call to command getlastacquiredresource, expecting node Flexscript ErrorMODEL:/Tools/ProcessFlow/CriticalPatients/Escort Patient~8>variables/destinationRef Could not finish parsing because of previous errors."
I believe I need the correct application of getlastrecquiredresource(), or maybe another way to manage destination by case.