Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Guards on control flow edge
Guards on control flow edge [message #982806] Tue, 13 November 2012 12:38 Go to next message
Jaco Jacobs is currently offline Jaco JacobsFriend
Messages: 2
Registered: August 2012
Junior Member
Hi

I am new to using Papyrus. I am trying to set a Literalstring guard on an activity edge (control flow), but don't seem to be able to do so.

Clicking on the edge, and then in the properties view, UML tab, the guard field, select LiteralString, and then entering a name and value. This doenst display the LiteralString on the diagram, and when you look at the value field it is set to "null", even though I specified a value.

Am I doing something wrong, misunderstanding something. This seems to work for other literal values like boolean. What am I missing?

Thanks for your help!

Jaco
Re: Guards on control flow edge [message #983119 is a reply to message #982806] Tue, 13 November 2012 17:44 Go to previous message
Vlad Gheorghe is currently offline Vlad GheorgheFriend
Messages: 127
Registered: May 2011
Senior Member
Hello Jaco,

What version are you using ?

In the latest version (0.9.1), in the Guard property of the transition you have to add a Constraint, and in that constraint you can add a LiteralString as a specification.

The value of the LiteralString is properly displayed as a guard on the diagram.

Regards
Vlad

Previous Topic:How to open a Papyrus editor programmatically
Next Topic:Type Selection Dialog Issues
Goto Forum:
  


Current Time: Fri Mar 29 16:00:35 GMT 2024

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

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

Back to the top