Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Oliver Michalski on September 05, 2005, 03:39:33 am

Title: Use of new Connector
Post by: Oliver Michalski on September 05, 2005, 03:39:33 am
Hi all,
I develop a UML profile for SOA.Some components of the Profile are ServiceProvider, ServiceConsumer,
Service(a Port), ServiceGateway(a Port) and ServiceChannel (a new Connector)

ServiceChannel should be used only between elements of Type Services or ServiceGateway

My question is whether I can limit the use of a connector ?

Any Suggestions

Thanks
Oliver  :)
Title: Re: Use of new Connector
Post by: Paolo F Cantoni on September 05, 2005, 04:02:22 am
Quote
Hi all,
I develop a UML profile for SOA.Some components of the Profile are ServiceProvider, ServiceConsumer,
Service(a Port), ServiceGateway(a Port) and ServiceChannel (a new Connector)

ServiceChannel should be used only between elements of Type Services or ServiceGateway

My question is whether I can limit the use of a connector ?

Any Suggestions

Thanks
Oliver  :)
Oliver, your profile looks very interesting.  But to answer your question, no, not directly.  

I had also intended to apply some similar rules.  However, I would do it via a MS-Access connection to the database and find those that didn't fit the rules (via queries) and highlight them (by changing their adornments - such as colour and thickness).

HTH,
Paolo
Title: Re: Use of new Connector
Post by: Oliver Michalski on September 05, 2005, 04:33:22 am
Hi Paolo,

thanks  for the fast answer.  I will try it.

The profile has at present beta status.  After completion I will share the result with everybody interested person
;)

Oliver
Title: Re: Use of new Connector
Post by: Eve on September 05, 2005, 05:01:34 pm
It's possible to limit the use of a connector using an add-in.

There is EA_OnPreNewConnector that allows you to disallow creation. http://sparxsystems.com.au/EAUserGuide/index.html?broadcastprenewconnector.htm

There is also EA_OnPostNewConnector that allows you to modify a created connector.

Simon
Title: Re: Use of new Connector
Post by: Oliver Michalski on September 06, 2005, 01:33:12 am
Hi Simon,

thanks  for the good reference

Oliver  :D
Title: Re: Use of new Connector
Post by: Paolo F Cantoni on September 06, 2005, 05:40:27 am
Oliver,

Don't forget that these methods are only part of the story. :(

You have established rules for what a connector may connect from and connect to.  These are, essentially, declarative - that is, they don't (or shouldn't) rely on any particular process.  Thus, as the connector and the end objects change, they may invalidate themselves.

A viable approach is to place the rules in a data structure and interrogate the rules whenever any of the component objects changes.  You can apply these rules at connector creation time as Simon says, but you'll also need to apply them at other times.  You need a consistent mechanism to apply the rules...

Consistency, Consistency, Consistency! TM ;D

HTH,
Paolo
Title: Re: Use of new Connector
Post by: Oliver Michalski on September 06, 2005, 05:55:57 am
Hi Paolo,

good objection

Thanks
Oliver  :)
Title: Re: Use of new Connector
Post by: mikewhit on September 06, 2005, 08:26:11 am
A year ago I put in a Feature Request about model validation rules, but did not get a reply (or if I did and deleted it, it was "no plans for this").
Title: Re: Use of new Connector
Post by: jeshaw2 on September 06, 2005, 09:38:24 pm
You might find this article helpful.

http://www.jot.fm/issues/issue_2004_11/column5

Cheers