Date: Fri, 29 Mar 2024 16:18:15 +0100 (CET) Message-ID: <1630262435.2232.1711725495550@nm-docs> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_2231_865705112.1711725495550" ------=_Part_2231_865705112.1711725495550 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
On this page
The Generic Numbering Mechanism consists of the Numbering Customizati= on and Numbering Scheme, shown in the figure below.
Create numbering schemes (formats) and apply them to DSL elements in the= modeling tool or plugin (SysML, Cameo Business Mode= ler, or UPDM plugin= ).
You can create one or more numbering schemes for the same DSL element. Y= ou can also apply the same numbering scheme to several DSL elements. I= n this case, instances of different DSL elements will be numbered in s= equence. For example, if you use the same numbering customization for both = actors and use cases, all actors and use cases in a use case diagram will b= e numbered in sequence. Another example of numbering different DS= L elements in sequence is shown in the figure below. The start events, = ;end events, tasks, and gateways in the BPMN Process diagram are numbered u= sing the same numbering scheme.
Find the instructions to customize the generic numbering mechanism to&nb= sp;create your own numbering scheme in Creating your fi= rst numbering customization. Create your own numbering customization&nb= sp;defining specific numbering properties using expressions.
Concept | Description |
---|---|
Numbering scheme |
Defines a numbering style as well as number p= arts used to compose a DSL element number. A numbering schema can have one = or more number parts. A numbering scheme is represented as a class with the= =C2=ABNumberingScheme=C2=BB stereotype applied. |
Number part |
Represents a rule for calculating an individu= al part of the whole element number, as the element number is composed of o= ne or more individual number parts. It can be a number, character, separato= r, or other. Number part is represented as a numbering scheme property with= the =C2=ABNumberPart=C2=BB stereotype applied. |
Numbering property |
Indicates a DSL element property to store the= element number and defines a numbering scheme used for the DSL eleme= nt numbering. The numbering property is represented as a customization elem= ent property with the =C2=ABAutoNumber=C2=BB stereotype applied. |
To create a numbering customization for an element:
Add a new attribute to the stereotype.<= /p>
This attribute will store the element number.
Create a numbering schem= e to define a numbering style and number parts.
Create a customization element for the previously created stereotype.<= /p>
Add a numbering attribute to the customization element. Reopen the p= roject to apply changes.
To define your own specific numbering customization, you need to define an = expression. For general numbering it is a binary script. The following = script example illustrates the multi-level numbering:
|
Where com.nomagic.magicd=
raw.autoid.LinkedDUCBinary is your binary class that implements&n=
bsp;INumberingAction.
For more information, see Custom el= ements numbering.
Related pages