Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: rmartinezb on April 04, 2017, 12:49:08 am

Title: Extending built in stereotypes in a profile (BPMN)
Post by: rmartinezb on April 04, 2017, 12:49:08 am
Hi!

I'm working with BPMN and I have to create some new elements. I know how to do this thanks to this guide http://sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/non-uml_metatypes.html

For example: (http://thumbs.subefotos.com/09d5154204aa9141e228f7c99e886961o.jpg) (http://subefotos.com/ver/?09d5154204aa9141e228f7c99e886961o.png)

But some of the new elements have to extend form some built in stereotypes, like a subProcess Task. For that I have to extend form BPMN2.0::Activity and indicate that this activity have the subProcess type. How can I do that?

Greetings
Title: Re: Extending built in stereotypes in a profile (BPMN)
Post by: Dermot on April 04, 2017, 11:44:57 am
See the help pages covering Extending non-UML langauges on:
http://sparxsystems.com/enterprise_architect_user_guide/13.0/modeling_tools/non-uml_metatypes.html
Title: Re: Extending built in stereotypes in a profile (BPMN)
Post by: rmartinezb on April 04, 2017, 04:44:13 pm
This is the same that I posted before but the v13 guide instead the v12.1  :-[

But how can I redefine my new activity to be a subProcess Activity?
(http://thumbs.subefotos.com/8fc4b3767059fbbd17c370d65eb8ec70o.jpg) (http://subefotos.com/ver/?8fc4b3767059fbbd17c370d65eb8ec70o.png)
Title: Re: Extending built in stereotypes in a profile (BPMN)
Post by: rmartinezb on April 28, 2017, 10:44:51 pm
Hi!, I'm here again and I still have the problem. I'll try to give more information about it:

I need to create a custom BPMN 2.0 Sub-Process element, but EA define this elements changing the "activityType" Tagged Value on a Activity element.

I tried to include the "activityType" property on my new elements, but instead overwrite the property, the elements get 2 activityType properties one of the of the task type and the other with Sub-Process type. This later gives problems in other processes.

So, is there any way to assign a value to an inherited property an the in the MDG file? I really need that the custom elements that extend from BPMN 2.0 Activity be Sub-Process type.



Title: Re: Extending built in stereotypes in a profile (BPMN)
Post by: Geert Bellekens on April 30, 2017, 02:10:16 am
I think you have to set a default value for the tagged value, but I'm not sure if you have access from your profile to that tagged value.
In that case I guess you'll have to use some kind of add-in, or EA-Matic script to fill in the default value for that particular tagged value.

Geert
Title: Re: Extending built in stereotypes in a profile (BPMN)
Post by: KP on May 01, 2017, 09:23:26 am
There is the following in the release notes for build 1305:
Quote
Redefine stereotypes from external profiles using a <<redefines>> stereotyped generalization
   . Add new tagged values to stereotype group for parent stereotype - Define distinct tags on the child stereotype
   . Replace the type of tagged values from parent stereotype - Define tagged values with the same name on the child stereotype
   . Remove tagged values from the parent sterotype - Define tagged values with the same name and the stereotype <<remove>> on the child stereotype
   . Automatically replace parent stereotype with child - Use same name for stereotype, and user selects technology containing child stereotype as active ( Configure | Technology | Manage | Set Active )

I think something in there will help you.
Title: Re: Extending built in stereotypes in a profile (BPMN)
Post by: rmartinezb on May 02, 2017, 06:00:32 pm
Hi! Thanks for your suggestions.

Unfortunately, the company I work for only use EAv12, so we resolved this problem doing an addin and using the EA_OnPostNewElement event to edit the activityType for the elements we want.

Greetings  ;D