Hello,
I have a booking of service definition type SRM.Default. I want to add some logic when confirming a booking of this type. How to change which script runs when the confirm button is clicked?
Thank you.
Hi Benjamin,
That is not possible with standard features as that Service Definition is meant to be used for out of the box Resource Scheduling and Orchestration.
You can either create a new Service Definition, where you use property "Created Booking Action" to configure the custom script that runs when a booking is confirmed.
Or you can subscribe on ResourceManager updates and then do your custom logic. See Is it possible to subscribe to SRM resource changes in order to get automatic updates? - DataMiner Dojo
Yes that is the way to go, but currently you need a node to use that feature. If needed in the service definition level you will need to request a new feature.
Thank you Jorge for the answer.
Right now I’m looking into the documentation
https://docs.dataminer.services/user-guide/Standard_Apps/SRM/srm_advanced_config/Service_Orchestration_advanced/Service_Orchestration_life_cycle_states.html?q=CreatedBookingAction#configuring-a-custom-created-booking-action
They say: Select the service definition and the node for which you want to run the script.
However, my custom empty service definition has no nodes, just like the SRM.Default, so I can’t configure the Created Booking Action property. How do I go on about this?