Add Logic to MAINTAIN SCORING RECORD Using Procedure Synthesis
Follow these steps:
From the Navigation Diagram, select the MAINTAIN SCORING RECORD server procedure.
From the Main Menu select Generate, and then select Procedure Synthesis.
Notice in the MAINTAIN SCORING RECORD – Procedure Synthesis panel that the Stereotype is not selected for Synthesis. We now want to select the stereotype. In the MAINTAIN SCORING RECORD – Procedure Synthesis panel select Procedure :MAINTAIN SCORING RECORD. Then, from the Main Menu, select Edit, then Stereotype, and then select Implements Action Blocks…. Notice that Stereotype not selected for Synthesis has been replaced with Implements Action Blocks Synthesis.
Thinking back to the Maintain Golfer server, the invocation of each process action diagram was associated in the CASE OF COMMAND statement with a particular Command value. Thus, for this new server procedure step action diagram, we need to specify which command value will invoke which action diagram. In the MAINTAIN SCORING RECORD – Procedure Synthesis panel, select Command | Action Block. Then, from the Main Menu select Edit, and then Select.
In the Action Blocks Implemented dialog, we need to specify which Commands are to be associated with which action diagrams. Select the command value CREATE from the listbox on the left and the action diagram ADD SCORING RECORD from the listbox on the right, then select the Select push button. The command and the action block are added to the panel at the top of the Action Blocks Implemented dialog.
Repeat this procedure for the command value UPDATE, the action block UPDATE SCORING RECORD, the command value DELETE, and the action block DELETE SCORING RECORD.
Your diagram should now look like the following example:
In the Action Blocks Implemented dialog, select the OK push button to add these to the MAINTAIN SCORING RECORD – Procedure Synthesis panel.
Now, we need to actually apply these choices. From the Main Menu, select Edit, and then select Apply.
Close the MAINTAIN SCORING RECORD – Procedure Synthesis panel by selecting the to the far right of the Main Menu.