Creating a service type adoption policy for specific services
At times it may be easier to create a service-type based adoption rule with separate functions to be called for separate services than creating 2 service based adoption rules.
JavaScript "if expressions" can be used to determine which service is in process and then call the associated function for the service. The code should be something similar to this:
var serviceName= service.getProperty("erservicename")[0];
if(serviceName == <service1>){
...//function call
}
else if(serviceName == <service2>) {
...//function call
}

Reader Comments