Changing schema map for a DHLink

Discussions about data interchange products Cameo DataHub and Magic RQ functionalities

Moderator: Moderators

Changing schema map for a DHLink

Postby KristijanCaelinus » Wed May 17, 2017 2:09 pm

I'd like to change the schema map used by every DHLink for a single DOORS module. When I originally mapped created the links, I missed a bunch of attributes in DOORS that weren't available in the mapping type I chose, so I created a new type that contains the extra DOORS attributes I want to map and created the new mapping:

SNAG-0033.png


So now I want to refactor all of those entities in MagicDraw so that they're using the new mapping. It looks like it isn't as simple as deleting the old mapping, since the DHLinks themselves hang onto the schema mapping that they're using:

SNAG-0034.png


Manually refactoring the entities to be the right type and then Synchronizing doesn't cause it to pick up the new schema mapping either, nor can I find any explicit DHLink re-mapping option. I fear that the only way out of this problem is to delete all of the entities and just re-build all of the DHLinks, which would be a nightmare because I already have a ton of other relationships between those DHLinked MagicDraw entities and other entities in my model. How can I re-map DHLinks to use different schema mappings?
You do not have the required permissions to view the files attached to this post.
KristijanCaelinus
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Tue Sep 13, 2016 12:14 pm

Re: Changing schema map for a DHLink

Postby ieva.n » Wed May 24, 2017 2:31 pm

Hello,

The reply was provided in support ticket https://support.nomagic.com/browse/DATAHUBCS-420

Sincerely,
No Magic, Inc. Customer Support
ieva.n
No Magic
No Magic
 
Posts: 369
Posts Rating:38
Joined: Thu Aug 02, 2012 5:02 am
Full name: Ieva

Re: Changing schema map for a DHLink

Postby mark.relova » Thu Jun 20, 2019 9:24 am

Hi,

I have the same issue (Cameo EA 19.0, DOORS 9.6). Can you provide your response to the OP's issue here? We need to remap our existing elements and we don't want to unnecessarily have to delete and re-export/import. Thanks!
mark.relova
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:1
Joined: Thu May 23, 2019 2:13 pm

Re: Changing schema map for a DHLink

Postby patrick.d.dees@boeing.com » Tue Sep 17, 2019 3:11 pm

I'd also like to see this done
patrick.d.dees@boeing.com
Forum Newbie
Forum Newbie
 
Posts: 16
Posts Rating:2
Joined: Wed Sep 11, 2019 1:42 pm

Re: Changing schema map for a DHLink

Postby rsloan@raytheon.com » Fri Nov 01, 2019 10:19 am

Can you please post your response here in the forum for the rest of us?
rsloan@raytheon.com
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Fri Oct 11, 2019 4:21 pm

Re: Changing schema map for a DHLink

Postby rasat » Tue Nov 05, 2019 8:04 am

Hello,

please find the answer from the ticket:

DataHub does not provide a feature to refactor the mapped type to the new one yet. But there is a workaround to do so. You may create a sample project and follow our steps in order to review the result whether this is what you need. Then redo the steps to your production model.

Says that we already have a Module imported as a SysML Requirements. Then later we need to refactor them to a more specific Requirement.

1. First we have a new type with additional attributes that generalize from the Requirement. (after the new type is created, you will need to save and reopen the project.)
changeType1.png

2. Refactor the current imported requirement to the new Requirement type.
changeType2.png

3. Call the Schema Map Manager via menu Tools> DataHub> Schema Map Manager...
4. Select the Source DOORS node type and the original Requirement type in MagicDraw.
5. Click Edit button at the bottom and change one existing mapping to blank, maybe Name. (Basically, this will force the next synchronization to take affect on every requirements for this mapping. And the mapping should pick up the new type that we refactored.)
changeType3.png

6. Click Save.
7. Right-click over the Module in the DataHub Explorer and choose the Synchronize Recursively.
8. After the synchronization, lets go back to the Schema Map Manager. Now you should see that the mapping is now applied to the new Requirement_DOORS. You can now edit the properties mapping with new attributes.
changeType4.png



Best Regards,
Supat P.
You do not have the required permissions to view the files attached to this post.
rasat
Global Moderator
Global Moderator
 
Posts: 21
Posts Rating:1
Joined: Tue Jul 14, 2015 7:51 am


Return to Cameo DataHub, Magic RQ

Who is online

Users browsing this forum: No registered users and 0 guests

cron