Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » What is the best strategy to solve my Papyrus Model errors(How to investigate and understand the Errors reported by Papyrus)
What is the best strategy to solve my Papyrus Model errors [message #855437] Tue, 24 April 2012 20:35 Go to next message
Alain Lavoie is currently offline Alain LavoieFriend
Messages: 82
Registered: April 2012
Member
Hi,

I see a small red box with an inside x on my Papyrus Project.
I can list the related problems in the Problems tab.
But how should I proceed to correct them ?

Should I investigate with in the UML Meta model ?
Is there a list of Problem -> How to solve
synthesis somewhere ?

Regards.
Re: What is the best strategy to solve my Papyrus Model errors [message #856018 is a reply to message #855437] Wed, 25 April 2012 09:44 Go to previous messageGo to next message
Arthur Daussy is currently offline Arthur DaussyFriend
Messages: 30
Registered: September 2011
Member
Hi,

The red box on you Papyrus Project means that markers has been added to Papyrus file to notify that Papyrus has encountered some errors.
In Papyrus in mainly when you try to validate a model and some constraints are violated.
If you want them to disappear you can simply delete from the problem view. But next time you will validate your model if the constraints are still not corrected the problems will reappear.

Regards,
Re: What is the best strategy to solve my Papyrus Model errors [message #856037 is a reply to message #856018] Wed, 25 April 2012 10:00 Go to previous messageGo to next message
Arthur Daussy is currently offline Arthur DaussyFriend
Messages: 30
Registered: September 2011
Member
hHi again,
I have just remembered that you can also use contextual menu to remove markers from you Papyrus file.
See :
-> http: //imgur.com/8spkQ
or
-> Attached document.

Regards,

Arthur Daussy
Re: What is the best strategy to solve my Papyrus Model errors [message #856250 is a reply to message #856037] Wed, 25 April 2012 13:56 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
As far as I know, Papyrus doesn't provide anything yet to help the user fixing the errors. The tool doesn't provide any "quickfix" feature.

Camille Letavernier
Re: What is the best strategy to solve my Papyrus Model errors [message #856257 is a reply to message #856250] Wed, 25 April 2012 14:04 Go to previous messageGo to next message
Alain Lavoie is currently offline Alain LavoieFriend
Messages: 82
Registered: April 2012
Member
Thanks to all.
I do wish to make these errors disappear.
I wish to treat them, and correct my model.
What I understand, is that Papyrus make some constraint checking
and provide me with warnings.

Papyrus must of provided these errors based on ocl-like list of
assumptions.

Q1 - Is my guess correct ?
Q2 - If yes, where are these assumptions located, in the UML metamodel,
or based on Papyrus users experiences ?
Q3 - Are these errors subjected to make Papyrus unable to read the model
when restarting ?

Thanks in advance.


[Updated on: Wed, 25 April 2012 14:05]

Report message to a moderator

Re: What is the best strategy to solve my Papyrus Model errors [message #856276 is a reply to message #856257] Wed, 25 April 2012 14:20 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Quote:
Papyrus must of provided these errors based on ocl-like list of
assumptions.


Yes ; the constraints have been extracted from the UML specification (I think, however, that not all of them are implemented).

Quote:
If yes, where are these assumptions located, in the UML metamodel,
of based on Papyrus users experiences ?


The constraints are specified in the UML spec, and implemented in the org.eclipse.uml2.uml plug-in (org.eclipse.uml2.uml.util.UMLValidator).

Quote:
Q3 - Are these errors subjected to make Papyrus unable to read the model
when restarting ?


Probably not ; the UML validation is strictly semantic. Saving a model with validation errors shouldn't be a problem. However, the validator can sometimes detect errors which are not semantic (e.g. a reference to another UML Model which doesn't exist anymore). This is not a UML error, but the validator may detect it, and it may prevent you from opening the diagram in some cases.


Camille Letavernier
Re: What is the best strategy to solve my Papyrus Model errors [message #856277 is a reply to message #856276] Wed, 25 April 2012 14:23 Go to previous messageGo to next message
Alain Lavoie is currently offline Alain LavoieFriend
Messages: 82
Registered: April 2012
Member
Excellent answer, Regards (Merci).
Re: What is the best strategy to solve my Papyrus Model errors [message #856291 is a reply to message #856276] Wed, 25 April 2012 14:35 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi
>
> The constraints are specified in the UML spec, and implemented in the
> org.eclipse.uml2.uml plug-in (org.eclipse.uml2.uml.util.UMLValidator).
>
Most of them are present but manually implemented. This solves the
problem that the OCL in the UML specification has many hundreds of
errors, but does not guarantee that the MDT/UML2 implementation matches
the intent of the UML specification.

For the forthcoming UML 2.5 specification, the OCL has been put through
OCL tooling to remove syntactic and semantic errors. Some of the OCL was
highly suspect and has been rewritten. It is possible the MDT/UML2
realisation of the OCL for UML 2.5 (after Juno) may use direct code
generation from the UML specification.

Regards

Ed Willink
Re: What is the best strategy to solve my Papyrus Model errors [message #856313 is a reply to message #856291] Wed, 25 April 2012 14:58 Go to previous message
Alain Lavoie is currently offline Alain LavoieFriend
Messages: 82
Registered: April 2012
Member
Thanks for the upcoming overview.
Previous Topic:Papyrus cannot save my data - Lost all my models
Next Topic:[Alf Editor] Why does it create a Comment instead of an OpaqueBehavior ?
Goto Forum:
  


Current Time: Thu Mar 28 17:21:55 GMT 2024

Powered by FUDForum. Page generated in 0.02759 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top