Hi Dojo,
We want to execute some resource configuration while the booking is active. For this we're using an Interactive Automation Script where the user defines the data that needs to get updated.
Is there a way that we can execute the PLS for configuring these values without the need of a Profile Instance?
Can we directly call the PLS like the PLS Tester does? If so, where can we find the format for the input parameters?
Hi Jens,
To be able to configure the resource, you will a profile instance.
I would suggest creating a profile instance that you manipulate in your Interactive Automation Script, and then you can use the following code snippet as an example of how to call the PLS:
var resource = SrmManagers.ResourceManager.GetResource(Guid.Parse("54d658a9-897e-4084-86bb-03cc5c188df9"));
var bookingManager = new BookingManager(engine, engine.FindElement("1.1 - Bookings - SDMN Satellite Downlink"));
var profileInstanceId = Guid.Parse("5670aafd-fc95-4b2d-8e53-1d81ddd7ea42");
var interfaceProfileInstanceIds = new Dictionary<int, Guid>();
var resourceOrchestration = resource.GetOrchestrationHelper(engine, bookingManager, profileInstanceId, interfaceProfileInstanceIds);
resourceOrchestration.ApplyProfile(string.Empty);
For the easiest approach, you will always need a profile instance.
Otherwise, you would need to update the booking and execute the LSO script (through BookingManager.ApplyServiceState method)
Thank you, André! That’s all the info I need
Hi André, Is there a way to not use a Profile Instance? I know that when I create a silent booking I can provide the data upfront, without defining a Profile Instance, which will result in a PLS getting executed. Can that same logic be reused?