Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Uffe on October 11, 2017, 02:07:00 am

Title: Shape script: action pin parameter type
Post by: Uffe on October 11, 2017, 02:07:00 am
Hi all,

In a shape script, and without resorting to an Add-In, is it possible to retrieve the parameter type for an action pin?

The problem is that the action pin is an instance type, and its classifier is the corresponding activity parameter -- not the type (classifier) of that activity parameter. And there's no classifier.classifier.type property to be retrieved.


/Uffe
Title: Re: Shape script: action pin parameter type
Post by: Uffe on November 08, 2017, 01:21:45 am
Hi Uffe,

The type you're after is the pin's property type. You can retrieve its classifier, if it has one, using the undocumented property propertytype.type.

HTH,


/Uffe
Title: Re: Shape script: action pin parameter type
Post by: Geert Bellekens on November 08, 2017, 02:53:46 am
Hi Uffe,

The type you're after is the pin's property type. You can retrieve its classifier, if it has one, using the undocumented property propertytype.type.

HTH,


/Uffe
auch Uffe, when you start talking to yourself that's the beginning of the end :o

Geert
Title: Re: Shape script: action pin parameter type
Post by: qwerty on November 08, 2017, 03:04:00 am
No, no. They are actually two persons. Dr. Uffe and Mr. Hyde.

q.
Title: Re: Shape script: action pin parameter type
Post by: Paolo F Cantoni on November 08, 2017, 12:38:34 pm
No, no. They are actually two persons. Dr. Uffe and Mr. Hyde.

q.
I've suspected that for a while!  ;D

Besides, so long as you get the right answers, talking to yourself is fine...

Paolo
Title: Re: Shape script: action pin parameter type
Post by: RoyC on November 08, 2017, 03:44:48 pm
That's an interesting side-effect of the clone element functionality... in Uffe's case we will call it a feature. In the interests of it not becoming a bug, I won't follow Uffe's procedure!