Author Topic: Shape script: action pin parameter type  (Read 171 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1048
  • Karma: +80/-5
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Shape script: action pin parameter type
« 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
My theories are always correct, just apply them to the right reality.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1048
  • Karma: +80/-5
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Shape script: action pin parameter type
« Reply #1 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
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 7671
  • Karma: +156/-21
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Shape script: action pin parameter type
« Reply #2 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

qwerty

  • EA Guru
  • *****
  • Posts: 8895
  • Karma: +134/-122
  • I'm no guru at all
    • View Profile
Re: Shape script: action pin parameter type
« Reply #3 on: November 08, 2017, 03:04:00 am »
No, no. They are actually two persons. Dr. Uffe and Mr. Hyde.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 5848
  • Karma: +71/-75
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Shape script: action pin parameter type
« Reply #4 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1155
  • Karma: +8/-3
  • Read The Help!
    • View Profile
Re: Shape script: action pin parameter type
« Reply #5 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!
Best Regards, Roy