Page 1 of 2

UML Validation

PostPosted: Fri Jul 25, 2014 1:00 am
by gobumanikandan@gmail.com
Hi Friends,

I am trying to add validation to UML diagrams in MagicDraw Tool. My problem is while adding my own constraints to an element am not able to give the constraint element as general. For example i am adding a constraint to check Class name should start with an capital letter im not to able to give constraint element as Class to check the same constraint for all the classes

Re: UML Validation

PostPosted: Fri Jul 25, 2014 2:40 am
by rimvydas.vaidelis
Hello,

I am not sure that I correctly understand you. Can you send me a sample project that shows your problem ?

If you want to validate all classes just specify UML Standard Profile::UML2 Metamodel::Class as Constrained Element
property value of your validation rule.

Best regards,
Rimvydas Vaidelis

Re: UML Validation

PostPosted: Fri Jul 25, 2014 6:50 am
by gobumanikandan@gmail.com
Hi Rimvydas,

Thank you so much for your reply.

Yes, you are correct but the problem is when I browse for Constraint element UML Standard Profile::UML2 Metamodel::Class is not there in the Tree or List in browse tab.
How could I specify UML Standard Profile::UML2 Metamodel::Class is there I need to change any profile settings to see the Class element in the List


Regards,
Gobu

Re: UML Validation

PostPosted: Fri Jul 25, 2014 6:52 am
by rimvydas.vaidelis
Which MD version you are using?

Re: UML Validation

PostPosted: Fri Jul 25, 2014 6:55 am
by gobumanikandan@gmail.com
MagicDraw Version 18

Re: UML Validation

PostPosted: Fri Jul 25, 2014 7:15 am
by rimvydas.vaidelis
Select Constrained Element property
Click the ... button (top right corner of the selected property). Select Elements dialog will be opened.
Enter Class in the Search By Name field.
Select Data > UML Standard Profile > UML2 Metamodel > Class and click OK button.

Re: UML Validation

PostPosted: Fri Jul 25, 2014 7:41 am
by gobumanikandan@gmail.com
Yes I went there to that dialog Box but Data > UML Standard Profile > UML2 Metamodel > Class is not there.
I can see only UML Standard Profile > UML2 Metamodel > PrimitiveTypes these things are inside a UML_Standard_Profile.mdzip and it is in light color like it is disable. Do I need to import or add that UML_Standard_Profile.mdzip file.

Regards
Gobu

Re: UML Validation

PostPosted: Fri Jul 25, 2014 7:52 am
by rimvydas.vaidelis
I think that Include elements from modules into search result button is unpressed in your case. Please
click the button and you will be able to select the Class. See attached image.
SelectElementDialog.png

Re: UML Validation

PostPosted: Fri Jul 25, 2014 8:08 am
by gobumanikandan@gmail.com
Hi Rimvydas,

You are correct, Thank you so much for your help in a small time. Could you please share your contact number so that i can contact you in case of doubt because I am very new to this tool. It will be very helpful for me to understand this tool. I assure that I will not make you feel me as disturbance.

Regards,
Gobu

Re: UML Validation

PostPosted: Mon Jul 28, 2014 12:30 am
by saulius_p
Hello Gobu,

We are glad to hear that were able to help you. Please note that customer support is provided using official channels which are listed at http://www.nomagic.com/support/general-support.html according to customer support level you or your organization has http://www.nomagic.com/support/general- ... tml#levels. For training, consultancy, dedicated support availability please contact your account executive Saulius Zukauskas (saulius.zukauskas@nomagic.com). He will share the options which are available for your company. I'm sure you will find and agree for the best for you.