Skip to main content



      Home
Home » Modeling » Papyrus » Moka BasicActiveObjectExample has warnings and errors(Example warnings errors)
Moka BasicActiveObjectExample has warnings and errors [message #1859516] Tue, 13 June 2023 05:04 Go to next message
Eclipse UserFriend
Dear Developers,

After installing Papyrus (2023-03 4.27) and Moka (4.1.0), I started with the BasicActiveObjectExample.
Validation however gives warnings and errors.

I could remove the warnings related to the Multiplicity Element by clicking switch editors and explicitly filling in lower and upper Values.
(Yet, I still don't understand why entering 1 in the other editor is not enough).

However, I have no clue on how to remove the errors:
* Error [Moka][fuml] Operation - If an operation is abstract it must have no method. Otherwise it must have exactly one method. <<Create>> <Operation> Increment () : Increment model::BasicActiveObjectExample::Increment EMF Problem
*Error The object flow must link object nodes with the same upper bounds. <Object Flow> createObjectAction to callConstructor model::BasicActiveObjectExample::Increment::Increment_Factory EMF Problem

Especially, since the last error is within Increment_Factory (which I just generated as described on https://wiki.eclipse.org/Papyrus/UserGuide/ModelExecution#Your_first_executable_model ) if have serious doubt as a beginner whether I did something wrong and am hesitant to continue with fUML...

So could these warnings and errors be removed?
If so, could a new, correct version of BasicActiveObjectExample be provided?
If not, how can I do it myself?

Greetings,
Pierre
Re: Moka BasicActiveObjectExample has warnings and errors [message #1859572 is a reply to message #1859516] Fri, 16 June 2023 04:16 Go to previous messageGo to next message
Eclipse UserFriend
Hello Pierre,

Here is my ideas :

1 - check in the Implement method that this method is not abstract and check the number of behavior, you should have one. It seems that in the tutorial this information is missing, you have to implement a behavior for that.
2. you should check the upper bound feature of pins target and source of the pointed ObjectFlow.

Best regards,
Pauline
Re: Moka BasicActiveObjectExample has warnings and errors [message #1859575 is a reply to message #1859572] Fri, 16 June 2023 05:48 Go to previous message
Eclipse UserFriend
Thanks for the answer.
I could remove the warnings.

However, adding behaviour without a specification or an implementation increased my confusion about what is really going on.
Previous Topic:relationship arrow connecting point
Next Topic:Problems with Moka and state machines
Goto Forum:
  


Current Time: Tue Apr 01 22:03:59 EDT 2025

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

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

Back to the top