Book a Demo

Author Topic: Trigger Re-use  (Read 6011 times)

Quidam

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Trigger Re-use
« on: January 21, 2008, 07:46:49 am »
Is there a way to re-use an existing trigger when creating a transition in a state machine diagram?  I'd like to associate a common trigger with certain state transitions across multiple subsystems, and thus multiple diagrams, but so far I can't find a way to do it.  Each method I can locate for associating a trigger with a transition (via transition properties or state tables...) creates a new trigger.  Thanks in advance.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Trigger Re-use
« Reply #1 on: January 21, 2008, 11:48:22 pm »
This used to be a bug in older versions which has been fixed in EA 7.0 build 818.

If you are using build 818, there's still a snag: you can only reuse triggers from the same level, so don't use composite elements with subdiagrams: if you mark a state as composite, a new diagram will be created below it, and in this diagram the triggers from the upper level will not be available. A feature request has been filed to change this behaviour, though.

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Trigger Re-use
« Reply #2 on: January 31, 2008, 02:31:55 am »
Hi,
In 7.0 build 818, you'll need to create the transitions in one of the state-trigger, state-state, etc. modes (i.e. not in diagram mode). You can then select the trigger and reuse as you wish.
If you do move the location of the diagram, you then lose visability of all of the triggers in these modes (the diagram itself is unaffected), but if you move the diagram back they miracurously reappear.