Hi, I would like to set up room maintenance when the patient has finished in the room (on realese).
Approach 1: I tried to create a token that solicits staff and performs a time. In this case, I have problems:
1) the patient still occupies a room and there is an error message when the patient token is destroyed.
2) the created token disappears with the patient token
Approach 2: I found that it is possible to use condition maintenance in people objects. Perfect! However, the trigger of the On Release subflow is also called when the room changes state due to the time table. At 7 am the room becomes available and maintenance is called. What is not desired.
Can you refer me to the best method and how to
- Correct the error of approach 1 (error message when destroying the token)
- Correct the unintended effect of approach 2 (maintenance not desired when changing state due to time table)
the two approaches in the attached models. Thanks in advance
MaintenanceIndependanteDuPatient_Approach_1_Create_token_for_maintenance.fsm
MaintenanceIndependanteDuPatient_Approach_2_MaintenanceCondition.fsm