Hi,
I am trying to use the Universal Connector in a programatic way to create a number of sub services. I am using the following XML.
<?xml version="1.0" encoding="ISO-8859-1"?>
<Services>
<Service>
<property tag="eventType" value="AddService" />
<property tag="MdrElementID" value="Sub_Service" />
<property tag="className" value="SA_Service" />
<property tag="Description" value="Sub_Service" />
<property tag="deviceID" value="Sub_Service" />
<property tag="severity" value="0" />
<property tag="Tags" value="0001" />
<property tag="Description" value="Adding a new Service" />
</Service>
<CI>
<property tag="eventType" value="AddCI" />
<property tag="MdrElementID" value="Group_A" />
<property tag="className" value="SA_Group" />
<property tag="deviceID" value="Group_A" />
<property tag="GroupName" value="Group_A" />
<property tag="Tags" value="0001" />
<property tag="severity" value="0" />
<property tag="Description" value="Group A" />
</CI>
<CI>
<property tag="eventType" value="AddCI" />
<property tag="MdrElementID" value="Group_B" />
<property tag="className" value="SA_Group" />
<property tag="deviceID" value="Group_B" />
<property tag="GroupName" value="Group_B" />
<property tag="Tags" value="0001" />
<property tag="severity" value="0" />
<property tag="Description" value="Group B" />
</CI>
<Relationship>
<property tag="eventType" value="AddRelationship" />
<property tag="SourceMdrElementID" value="Sub_Service" />
<property tag="TargetMdrElementID" value="Group_A" />
<property tag="ScopeMdrElementID" value="Sub_Service" />
<property tag="Semantic" value="Requires" />
<property tag="className" value="Relationship" />
</Relationship>
<Relationship>
<property tag="eventType" value="AddRelationship" />
<property tag="SourceMdrElementID" value="Sub_Service" />
<property tag="TargetMdrElementID" value="Group_B" />
<property tag="ScopeMdrElementID" value="Sub_Service" />
<property tag="Semantic" value="Requires" />
<property tag="className" value="Relationship" />
</Relationship>
<Relationship>
<property tag="eventType" value="AddRelationship" />
<property tag="SourceMdrElementID" value="Super_Service" />
<property tag="TargetMdrElementID" value="Sub_Service" />
<property tag="ScopeMdrElementID" value="Super_Service" />
<property tag="Semantic" value="Aggregate" />
<property tag="className" value="Relationship" />
</Relationship>
</Services>
Everything gets created correctly except the Sub Service is added directly under the Services service instead of becoming a sub service to 'Super_Service'.
i.e.
This is the structure that is created.
Services
>Sub_Service
Instead of.
Services
>Super_Service
>Sub_Service
Hopefully that all makes sense. Any and all advice on sorting this is greatly appreciated, also some logging or more verbose output on what the Universal Connector is doing when used in this way would be very useful.
Cheers,
Simon