I have a use case where I'd like to create a booking that has to execute immediately (start time in the past). When I create my booking from an automation script, I usually have to do this in 2 steps:
- First I create a booking. By doing this the SRM framework automatically picks available resources that fit for the job.
- Based on the resources picked by the SRM framework, the script updates the reservation with some extra profile parameters (transferring data to other nodes in the service definition).
The problem I'm facing right now when I create the booking with start time in the past is that after step 1 the booking immediately starts: LSO script is triggered, profile load scripts are executed but they fail because not all data is present yet to proceed (because step 2 was not executed yet).
How can I resolve this? I was thinking of checking in my LSO script if all mandatory profile parameters are set before triggering the profile load scripts but that's quite a heavy operation.
Hi Jochen,
I'd suggest to create your booking in a pending state and confirm it only when all mandatory profiles/resources have been selected.