Book a Demo

Author Topic: Trigger event from outside EA  (Read 4516 times)

minrie

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Trigger event from outside EA
« on: November 23, 2012, 05:02:15 pm »
Good day,
 
We are using Enterprise Architect to model and simulate the interaction and information flow between various systems.
 
In order to fully utilise the simulation capabilities of EA we would like to be able to send information to / trigger an event in EA from an external system. E.g. Input from an external system should trigger an event or cause a transition in the simulation.
 
What would be the best way to implement this? We've been looking at COM objects and the automation interface. Could you please give some advice as to what would be the most sufficient way of implementing this as well as some pointers to documentation / tutorials to get us started?
 
Your advice would be greatly appreciated.

Thanks, Minrie

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Trigger event from outside EA
« Reply #1 on: November 23, 2012, 06:34:35 pm »
I don't think any of the simulation objects and methods have been exposed in the API.

Geert

minrie

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Trigger event from outside EA
« Reply #2 on: November 23, 2012, 07:43:18 pm »
Hi,

We tried using COM objects to influence the simulation in EA from an external application. This attempt was inspired by the EA_Userguide (Dynamic Simulation with Javascript, Using COM).

We could get EA to call functions from the COM object, but we couldn't find a way for the COM object to send an event that can be caught by the EA Simulation to change the simulation flow.

Any advice?

Thanks,
Minrie

MMA

  • EA User
  • **
  • Posts: 63
  • Karma: +3/-0
    • View Profile
Re: Trigger event from outside EA
« Reply #3 on: November 26, 2012, 04:10:26 pm »
I think the "Using COM" demonstrated "ONE WAY" of what actions can be performed by EA simulation.

However, your requirement is "BI-DIRECTIONAL" in EA simulation, let the real world's signal be used to trigger EA's Event.

Quote Geert's "I don't think any of the simulation objects and methods have been exposed in the API."

Either use "BroadcastSignal("CancelPressed");" inside EA's action, or manually trigger the event in the list.
 ;)