Server Reference Guide : ASOLib--OpenROAD Server Library : How You Can Use ASOLib Within an OpenROAD Server Application : Step 4: Generate GSCPs
 
Share this page          
Step 4: Generate GSCPs
The user class methods are exposed using a process called SCPGen. You can generate SCPs on the Develop tab of OpenROAD Workbench.
To generate GSCPs
1. Click the application containing the user class for which you want to generate SCPs in the Applications portlet of the Develop tab.
Application components are listed in the Components portlet.
2. Double-click on the user class component for which you want to generate SCPs.
The Class Editor appears.
3. Click the Methods tab.
4. Double-click the method for which you want to generate SCPs.
The Class Editor: Method Properties dialog appears.
5. Select the Generate SCP option, and type over the default GSCP name if you want to change it.
6. Click Apply and then Close to close the Method Properties dialog.
7. (Optional) Repeat steps 4–6 for any other methods.
8. Click File, Save and Close to save the user class and close the Class Editor.
9. Select the user class in the Components portlet and then click Project, Compile.
The user class is compiled. Status of the compile is displayed in the Workbench status bar.
This creates one GSCP for each method to be exposed.
10. To display the generated SCPs, click the Filter portlet tab to display the Component Filter portlet.
11. Select the GSCPs option and then click Apply.
Generated SCPs are listed in the Components portlet.
GSCPs cannot be edited. A generated SCP accepts the same parameters as its associated method or procedure, plus the OSCA and some optional XML control parameters. The session context associated with OSCA is made current, and control is passed to the associated method or procedure. The GSCP is protected by an exit trap essential for OSCA's error handling.