Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link

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.

0 votes

Comments
Thanks Pierre,

I tihnk that's where I am, but I'm trying some other cast to types having read your answer - I'm sure it can be done...

I still cannot access the "value" element.
I believe it is a defect and have opened a support case.
I will  update you when I have news.


Permanent link

  My library won't load. I recently updated my windows 10 and it seems to have broken something such as my discord.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,033
× 30

Question asked: Feb 14 '22, 11:32 a.m.

Question was seen: 1,300 times

Last updated: Mar 30 '22, 8:28 p.m.

Confirmation Cancel Confirm