For an SRM project, there could be a situation where an assigned resource might be invalid when the booking starts. In such a situation, our customer wants to automatically recover by assigning another resource (if any available). This means we should detect the situation during the execution of the LSO/PLS scripts and react.
However, I wonder if such swap operation is feasible or recommended within the LSO or the PLS. In case we shouldn't change the assigned resource while the execution of these scripts, what other alternatives may we have to implement the expected behavior?
Manipulating a booking in a script triggered by the booking itself (LSO) is not advised , as you could experience race conditions.
We would suggest to have some external logic in place detecting this ahead of time ( few minutes before booking start, or even earlier ).
You could also make use of features such as PLM or Resource Scheduling to quickly reserve those resources when a manual intervention is required. This would show impact on other bookings and would give time to react.