A primitive operation is one whose body you
define yourself instead of letting IBM® Rational® Rhapsody® generate
it for you from a statechart.
Creating primitive operations using the Features window for
a class
Procedure
On the Rational Rhapsody browser,
double‑click a class to open its Features window.
On the Operations tab,
either click the <new> row in the list
of operations or click the New button in the
upper, right corner of the window and select PrimitiveOperation.
The new row is populated with the default values.
By default, the product names the new primitive
operation Message_n, where n is greater than or equal
to 0. Type the new name for the operation in the Name column.
Change the other default values as necessary.
Click OK.
Creating primitive operations using the browser
About this task
Alternatively, you can create a primitive
operation through the use of the Rational Rhapsody browser,
as follows:
Procedure
In the Rational Rhapsody browser,
right-click the class, actor, operation, or use case node to which
you want to add the operation and select Add
New > Operation. Alternatively,
you can select the item and choose Edit > Add New > Operation from the menu bar.