Book a Demo

Author Topic: Find transition trigger element  (Read 2872 times)

mpdelbuono

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Find transition trigger element
« on: May 14, 2011, 08:03:01 am »
Hi all,

I have an addin that processes state machines. I'm trying to find out how to get the trigger for a given transition. For example:

Imagine a state machine with two states, each with one transition out to the other state. Both of those transitions are linked to a trigger element which is defined elsewhere in the model. I want to find that element, based off the transition I'm looking at.

(I'm using the automation interface.)

I can easily look up the trigger by name, but I don't want to go that route given the possibility that two triggers might have the same name. I know the exact element must be stored somewhere, because when I click the "..." next to the trigger it shows me exactly where in the model hierarchy it is. But I don't see that information anywhere within EA.Connector. I only see its name.

Can anyone point me to a way to access this information?

Thanks,
-- Matt

mpdelbuono

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Find transition trigger element
« Reply #1 on: May 14, 2011, 08:59:54 am »
I believe I might have found it in the t_xref "black hole"

It appears to be the row in t_xref where the client is equal to the connector's GUID and the "behavior" is "trigger" (the trigger element is the value of the "description" column).

Is this the easiest (only) way to access it?

Thanks,