Book a Demo

Author Topic: how to model deferred triggers in statemachines?  (Read 3270 times)

christian L.

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
how to model deferred triggers in statemachines?
« on: July 18, 2012, 06:37:15 pm »
Hello,

I am trying to use the uml 2 conform syntax of deferring triggers in statemachines.
Like this:
http://en.wikipedia.org/wiki/UML_state_machine
check for event deferral.

How to do enter this in EA?

Thanks in advance,

Christian

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: how to model deferred triggers in statemachine
« Reply #1 on: July 18, 2012, 07:31:35 pm »
I'd simply add an entry point with a guard as proposed in the Wikipedia article.

q.

christian L.

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: how to model deferred triggers in statemachine
« Reply #2 on: July 18, 2012, 08:22:35 pm »
hm. so the action is the trigger and the name is defer, like this:

+ mytrigger / defer

right?

This works, but I expected something more integrated....

Christian

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: how to model deferred triggers in statemachine
« Reply #3 on: July 18, 2012, 08:54:26 pm »
Christian,

Although you can define triggers in EA I don't see an integrated way of linking them to the State who is deferring them.
In this case I think I would add a dependency with stereotype <<defer>> to link the triggers with the State.

According to the UML specification
Quote
deferrableTrigger: Trigger [0..*]
A list of triggers that are candidates to be retained by the state machine if they trigger no transitions out of the state (not
consumed). A deferred trigger is retained until the state machine reaches a state configuration where it is no longer
deferred. {Subsets Element::ownedElement}
the deferred triggers subset the OwnedElement collection, so that means you'll have to define the trigger nested in the State.

Geert

PS. You can send a Feature Request to Sparx to implement this. The always claim to support UML 2.4, so they might be inclined to add this as well.

christian L.

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: how to model deferred triggers in statemachine
« Reply #4 on: July 18, 2012, 09:57:08 pm »
Thanks.

Thats what I figured: it's not in as it is meant to be. I issued a feature request.

Christian