JeeWiz Home  
The Model-Driven System Builder
JeeWiz Modeler's Help File for RSA/RSM
 
Contents  >   5.  User Interfaces
 


5.6 How to Model an Event

Events are modeled from stereotyped directed associations from the class diagram. You can do this by selecting a directed association from the pallet by clicking on the Class Diagram Drawer in the palette to open it, finding the association creation section, then drawing a line from one page to another. Afterward making sure the association is still highlighted, add an event stereotype using the Add Stereotype button in the stereotype tab of the properties view.

You don't want to show the multiplicities on the diagram or the role name as these are misleading, and you can switch them off by right clicking on the event and under Filters select the Hide Connector Labels.

A basic event will show up on the page as a button on the bottom of the page. If you want to model an event that does not appear, use the display style inline. This is used to link into a list page, where it will create a button on each line, but on other pages the event will not appear as a button at all. Select styled events also do not appear as buttons on the bottom of the page.

The name appearing on the button will either be the name of the event or the userNameBase if that has been set. The event name is set under Label on the General tab of the properties window. You should always fill in an event name when using RSA.

It is possible to run code from an event and the properties successForwardAction, jar, bean, businessMethod and text are all explained in the relevant How-to (How to make events do things).


Links:  

Copyright © 2001-2006 New Technology / enterprise Ltd.