Previous Topic: Add the Process Logic to LOGIN GOLFERNext Topic: Add Action Diagram Statements


Perform View Maintenance

Follow these steps:

  1. Start by opening the LOGIN GOLFER action diagram. See the previous examples if you need help.
  2. Select ENTITY ACTIONS: in the action diagram. From the Menu Bar, select Edit, select Add View, and then select Add Entity View….
  3. In the Add Entity Action Entity View dialog, select GOLFER. Then, in the list of attributes, select all of the attributes except email address. Select the OK push button to add the view to the entity action views within the diagram. If you have multiple adds turned on, select the Cancel push button to close the Add Entity Action Entity View dialog. Expand the entity action views by selecting the Expand Examine Expected Effects icon on the Tool Bar.
  4. We can copy this view to the import and export views, and then delete the unwanted attributes.

    Select Entity View golfer. Press F8 (copy) on your keyboard and (with the hand as the cursor) select IMPORTS:. Enter import in the New name: field on the Copy Entity Action Entity View dialog. Select the OK push button to complete copying the view.

  5. Press F8 again and copy it to the export views naming it export.
  6. From the Menu Bar, select View, and then select Expand All Views.
  7. All that is required in the import view of golfer is the user ID and password. Delete the other attributes by selecting them (use the Ctrl key to make multiple selections) and then from the Menu Bar, select Edit, and then Delete View(s)…. Select Yes when asked to confirm.
  8. All of the remaining import views are required, so double-click the view property optional in each view and change it to always used as input.
  9. Delete the attribute views password and userid from the export view of golfer.

    The action diagram for LOGIN GOLFER should now look as:

    Perform View Maintenance

  10. Save your model.