Unable to use TBSM's SCR attribute cdm:something in a policy
These are the steps I tried to reference a SCR attribute within a ServiceInstance in an Impact policy:
1) customer has already Defined the SCR attribute sent to the TBSM Service Model As you can see from the screen shot, the Service Editor for the service under the Additional tab shows the custom cdm:CAC = for this service Instance has the value = CAC-01 (see screen shot)
2) this is the SCR attribute customer would like to reference in his impact policy.
3) customer looks at Service instance variables ...and "Service variables to use in a policy" in TBSM configuration guide:
Service instance variables
This section describes the service instance variables you can get and set in a policy. Whenever a policy is run against a given service instance, you can access this data from the ServiceInstance object.
The properties in the table below can be accessed from the ServiceInstance object
using the syntax:
ServiceInstance.<propertyName>
4) But no where in the Guides does it explain how to reference the SCR attributes for a ServiceInstance in the policy?
customer tried thing like:
log("cdm:CAC: " + cdm:CAC); log("ServiceInstance.CAC: " + ServiceInstance.CAC) ;
but it is not working, nothing is logged for ServiceInstance.CAC ?
Answer by hawkinjo (2969) | Oct 27, 2016 at 09:17 AM
In general you can access properties from a TBSM policy via
ServiceInstance.<propertyName>
However, when property names contain a colon that syntax doesn't work in Impact. To resolve, you need to use the syntax
ServiceInstance["<propertyName>"] (i.e. ServiceInstance["cdm:CAC"] ).