Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MatthiasVDE on January 17, 2020, 12:21:57 am

Title: Difference between Add-In Events, Broadcast Events and Workflow Add-In Events
Post by: MatthiasVDE on January 17, 2020, 12:21:57 am
The Enterprise Architect Add-In Model knows three types of events, but what's the big difference between those three types?
Title: Re: Difference between Add-In Events, Broadcast Events and Workflow Add-In Events
Post by: Geert Bellekens on January 17, 2020, 12:40:44 am
Nothing really.

They are grouped in a somewhat functional way.

Geert
Title: Re: Difference between Add-In Events, Broadcast Events and Workflow Add-In Events
Post by: Uffe on January 17, 2020, 01:07:11 am
Hi Matthias,


You missed one type there: MDG Events. :)

In terms of responding to these events there's no difference betwen them, but you have to set up your Add-In a little differently for some of them and they are handled differently by EA.
So you have to explicitly register to receive MDG and Workflow events, you get Broadcast events because you choose to implement certain interfaces, and the Add-In events you just get.

Don't know why Sparx has chosen to use two different ways of deciding which events to send to which Add-Ins (DLL inspection on the one hand and registration on the other), but hey -- koncistensy.

HTH,


/Uffe

PS I haven't actually investigated any of this, it's just what I've read in the API documentation which might be complete rubbish.
Wouldn't want to be accused of making blanket statements.
Title: Re: Difference between Add-In Events, Broadcast Events and Workflow Add-In Events
Post by: Eve on January 17, 2020, 08:34:37 am
Don't know why Sparx has chosen to use two different ways of deciding which events to send to which Add-Ins (DLL inspection on the one hand and registration on the other), but hey -- koncistensy.
Not sure that there are two different ways of determining things. An add-in can request one of two sets of extra broadcasts, but EA checks that it exists before calling any add-in function.
Title: Re: Difference between Add-In Events, Broadcast Events and Workflow Add-In Events
Post by: MatthiasVDE on January 20, 2020, 07:01:39 pm
Thanks for the explanation!