Extract InstanceSlots from Rhapsody with RPE
Hi,
I am beginning to use RPE with Rhapsody and can mostly navigate the schema to extract some Rhapsody elements. However, I am now stuck and am looking for some help.
Would anyone be able to offer advice on how to extract the information contained in an InstanceSlot? At the moment I have used NestedElements but simply get InstanceSlot 0 etc. rather than the name and values of the element associated with the InstanceSlot.
Apologies if the question is a bit garbled.
Many thanks in advance
Calum
2 answers
Hello
I have:
Block A with Value Properties X
InstanceSpecification a:A with InstanceSlots X = "abc"
I can extract the InstanceSlots Name with
Projects/Project/
Packages/Package/
InstanceSpecifications/InstanceSpecification ( name is a)
instanceSlots/InstanceSlot ( name is instanceslot_0)
SlotProperty/ModelElement
name ( will return 'X' )
According to the return XML from the query the Instance slot value "abc" should be here:
InstanceSpecifications/InstanceSpecification/instanceSlots/instanceSlot/Values/ValueSpecification/value
But the Rhapsody PUB Schema do not contain the trailing "value" element
I will keep looking into it.