Book a Demo

Author Topic: Object attributes in transition guards  (Read 2819 times)

Piotrek

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Object attributes in transition guards
« on: February 12, 2009, 02:36:51 am »
Hi all,

I’ve got state machine diagram and guards on transition between states. In other words if guard is fulfilled then the object changes state from state1 to state 2. This guard is a value of one of the object attributes. For example guard is [attrib1 > 10] - when attrib1 is greater than value 10, object changes state to state2.

Now the question :) Is it possible in EA to use object attributes in transition guards on state diagrams? Instead of writing attrib1, I would like to choose it from the object attributes list.

Best regards,
Piotr

ballukex

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Object attributes in transition guards
« Reply #1 on: February 20, 2009, 09:57:58 pm »
This question is very interesting for me, too.
So, can someone help us?

bye,
ballukex.

bioform

  • EA User
  • **
  • Posts: 230
  • Karma: +0/-0
  • Forty-Two?
    • View Profile
Re: Object attributes in transition guards
« Reply #2 on: February 28, 2009, 06:11:23 am »
What is your POV for this request?

I frequently use the gaurd option (Effect is Behavior), then navigate to one of the activites that I have defined in a use case's activity diagram.

e.g., Applicant, has state transition gaurd of "/Submit Application" for the change from "Applying" to "Applied"...

But currently I do not see a way to reference an attribute of a class...

I wonder if there is a UML rule that applies here in this context that prevents this from being used?

David
Time is what keeps everything from happening at once, Space is what keeps it all from happening to you. <unknown>