Book a Demo

Author Topic: Transform an Activity object into CallBehavior object  (Read 4848 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Transform an Activity object into CallBehavior object
« on: April 07, 2016, 04:18:43 am »
hi,
I have an "Activity UML object", taken from the model tree (in the AddIn code it is EA.Element),
What I want my AddIn to do is, once I am taking that object and putting it on the diagram,
that it will be switched to a CallBehvior object.

I managed to do it in EA without AddIn coding,
is this something this something AddIn coding can do?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Transform an Activity object into CallBehavior object
« Reply #1 on: April 07, 2016, 05:08:27 am »
You need to subscribe to EA_OnPostNewDiagramObject in order to get informed about placing something on a diagram.

q.

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Re: Transform an Activity object into CallBehavior object
« Reply #2 on: April 07, 2016, 06:22:45 am »
Hi,
The issue is transforming the EA.Element from Activity to CallBehavior.
With placing it on the diagram I am fine.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Transform an Activity object into CallBehavior object
« Reply #3 on: April 07, 2016, 07:02:09 am »
Well, that's some obscure flag somewhere xD I'll try to have a look tomorrow.

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Transform an Activity object into CallBehavior object
« Reply #4 on: April 07, 2016, 09:02:45 pm »
It turns out that it's an entry in t_xref.

Name='CustomProperties',
Type='element property',
Description='@PROP=@NAME=kind@ENDNAME;@TYPE=ActionKind@ENDTYPE;@VALU=CallBehavior@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP',
Client=guid of action

q.