The New method
RISE provides a method sterotype called New for creation of an instance of an entity.
The method is named New<entity name> by default.
Rules for the New method sterotype:
A mandatory attribute is one that is
The IDocument example
We examplify a New method with the method NewDocument in the interface IDocument in the model below.
Furthermore, suppose that the Document entity has attributes defined as below, i.e. a name that must be set and an author that is allowed to be empty.
This will result in the following NewDocument method viewed using the RISE method editor. Note that the caller must provide a name for the document, but not the author, and a reference to folder to which the document is related since these are mandatory according to the model.