Author Topic: Reuse of BPMN Pool ShapeScript - nothing gets displayed  (Read 4041 times)

Viking

  • EA User
  • **
  • Posts: 453
  • Karma: +2/-2
    • View Profile
Reuse of BPMN Pool ShapeScript - nothing gets displayed
« on: February 28, 2017, 07:03:10 pm »
Hello,

We built up an own Toolbox. For the Toolbox we reused the ShapeScript of BPMN Pool in our own stereotype.

The problem is, nothing gets displayed when we drag the element into a diagram?

The reason could be that the shape script of BPMN Pool uses "drawnativeshape()". Probably it inherits this method.

We use <all> as Base Class. Should we change this? We already tried all Base Classes but nothing happens. Or do we have to use further tagged values, inherited from the super class(es)? We currently use the tagged values displayed by the Property Dialog of the standard BPMN Pool. Which ones do we have to use and with which default values?

Many thanks in advance, Viking.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Reuse of BPMN Pool ShapeScript - nothing gets displayed
« Reply #1 on: March 01, 2017, 09:47:20 am »
1. Does your element have all of the tags and properties that the shape script is looking for? Are their values what the shape script is expecting?

2. This board of the forum is to "Suggest and discuss, with other users, features you would like to see added to Enterprise Architect." You appear to want the Automation Interface, Add-Ins and Tools board, two doors up. Please try to post on the correct board in future. Thanks.
The Sparx Team
[email protected]

Viking

  • EA User
  • **
  • Posts: 453
  • Karma: +2/-2
    • View Profile
Re: Reuse of BPMN Pool ShapeScript - nothing gets displayed
« Reply #2 on: March 01, 2017, 08:06:22 pm »
1. Does your element have all of the tags and properties that the shape script is looking for? Are their values what the shape script is expecting?

We tried this with the original Shape Script of the Pool, provided by EA. We did not change anything. We also set all tagged values the shape script uses.

We did the same with other scripts and they work as expected.

That's why we think there are some inherited variables, global variables or baviour of EA, used for some shape scripts in the background. See also http://sparxsystems.com/forums/smf/index.php/topic,37866.msg236243.html#msg236243.
« Last Edit: March 01, 2017, 08:21:58 pm by Viking »

Viking

  • EA User
  • **
  • Posts: 453
  • Karma: +2/-2
    • View Profile
Re: Reuse of BPMN Pool ShapeScript - nothing gets displayed
« Reply #3 on: March 06, 2017, 11:20:01 pm »
We solved the issue. The our stereotype has to inherit from the Pool stereotype.