Book a Demo

Author Topic: Getting parameters of messages in sequences  (Read 5404 times)

iMikel

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Getting parameters of messages in sequences
« on: November 01, 2007, 06:33:15 am »
 Hello,

i am extending EA using the Java-API and have a question concerning sequence diagrams.

If a message (in other words: a connector of type "Sequence")
has not only a name but has also Parameters, how can i get / access them via API.

The method "connector.getName() just returns the "pure" message name, not its parameters ...

Does someone know?

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Getting parameters of messages in sequences
« Reply #1 on: November 01, 2007, 03:35:35 pm »
This information should be available from Connector.MiscData(1).  This field is read-only from automation however.  If you intend to write values back to this field, you would need to make a direct SQL update to [t_connector].[PDATA2].

HTH.

iMikel

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Getting parameters of messages in sequences
« Reply #2 on: November 02, 2007, 05:07:40 am »
Hello,

thanks for advice, bust MISCDATA(0) and MISCDATA(1) contain
other informations, and the connectors properties also contain
information other than the parameters ...

Where the hell are the parameters ... ?

Greetings from Berlin (Germany)

jkorman

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Getting parameters of messages in sequences
« Reply #3 on: November 02, 2007, 07:19:52 am »
Original signature = void dostuff(double b, int a)

If you take the Connector.name = "doStuff(double, int)"

and the contents of MiscData[1] = retval=void;params=;paramsDlg=b, a;

and apply paramsDlg in order you get

return= void : param double b : param int a

To Sparx: What is supposed to be in params?

Personal note : It would be a lot cleaner to link to the actual SupplierEnd methodId. The user would then have access to all of the method/parameter metadata that the modeler has entered.


Jim

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Getting parameters of messages in sequences
« Reply #4 on: November 04, 2007, 01:11:24 pm »
The actual method is linked to from a tagged value on the message.  The rest of that field that gives information about the operations is essentially a cached version.