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 Jacobs
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 Gheorghe
Messages: 111
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: Sun Sep 21 18:10:06 GMT 2014

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

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