question

Tiffany Pecson avatar image
0 Likes"
Tiffany Pecson asked Tiffany Pecson commented

Next Activity Based on a Condition

I have a Decision Point where I would like the patient to go to the next Activity based on their current area. So if the patient is in WaitingRoom1 I'd like them to go to Activity 100, if they are in WaitingRoom2, I'd like them to go to Activity 200. I tried to use the condition below, but it does not work, the patient goes to Activity 200. What am I missing?

FlexSim HC 5.3.4
next activitybased on a condition
next-activity.jpg (28.4 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Tiffany Pecson commented

getarea() returns the area the patient is in, but you are comparing it to WaitingRoom1 which is a location and not an area. To get the patient's location use the up command:

up(patient) == WaitingRoom1
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Tiffany Pecson avatar image Tiffany Pecson commented ·

thank you!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.