You can create new objects by using the Add option from the Edit menu.
When you populate the Contract Repository, we suggest that you construct your objects from the "bottom up." Create your elements first, then structs, operations, interfaces, and finally, modules. Elements are self-contained, but each of the other objects depend on the object prior to it in the Contract Repository tree (e.g., structs depend on elements).
Follow the instructions in the sections for:
All object names that you input must conform to the format rules of C language identifiers. Each identifier must start with an alphabetic character or an underscore (e.g., fixed_occurrence). Each identifier can include alphabetic characters, underscores, and numeric characters.
Figure 3-4 shows the Add Module window. To create a module, select the root of the module tree, choose Edit->Add from the menu bar to display the Add Module dialog box, and type the name in the Module Name text entry field. Select the module's current interfaces by moving items from the Available Interfaces display area to the Current Interfaces display area. See Creating New Objects for information about object naming conventions.
Format Rules for Repository Objects
Adding Modules
Figure 3-4 Add Module Window
To add a module:
Adding Modules Instructions
Or
Click on the Add toolbar button.
You can create an interface by accessing the Add Interface window. The available operations are displayed on the right and the current operations are displayed on the left. Use the arrow buttons to move operations in or out of the interfaces. See Creating New Objects for information about object naming conventions.
Figure 3-5 Add Interface Window
To add an interface:
Adding Interface Instructions
Or
Click on the Add toolbar button.
To add operations, the list of available parameters (based on previously defined elements) is displayed on the right scrollable list. Type the operation name in the text entry field, select the parameters, and enter the BEA TUXEDO server implementation information. See Creating New Objects for information about object naming conventions.
When adding operations, the Select buttons for Input Buffer Name and Output Buffer Name are enabled if the buffer type is VIEW or VIEW 32. The Edit button is used to change a parameter's passing mode, occurrence, and mandatory attributes after it has been moved from the available list. See Modify Parameter for additional information. The default fields are shown below.
Field | Default |
---|---|
Passing Mode |
in |
Mandatory |
Yes |
Display Name |
Parameter name |
Figure 3-6 Add Operation Window
To add an operation:
Adding Operations Instructions
Or
Click on the Add toolbar button.
If you select an input buffer type or an output buffer type of VIEW or VIEW32, the Select buttons for the Input VIEW Name and Output VIEW Name fields are enabled. When you click on Select, it brings up the Input VIEW Name or Output VIEW Name window shown in Figure 3-7.
To select a VIEW Name for an input or output buffer type:
This brings up the Select Input VIEW Name or the Select Output VIEW Name window as shown in Figure 3-7.
The input and output VIEW names appear in the form ElementName (ElementType).
Figure 3-7 Select Input VIEW Name Window
Structs (also referred to as "structures") comprise a group of available element members. A struct cannot be nested within a struct. Each member has a name, type, and length information. Use the << or >> keys to move members between current and available status. When a member name is moved, all of the information accompanying the member is moved. See Creating New Objects for information about object naming conventions.
Figure 3-8 Add Struct Window
To add a struct:
Adding Structs Instructions
Or
Click on the Add toolbar button.
You create new elements by using the Add Element window shown in Figure 3-9. See Creating New Objects for information about object naming conventions.
Figure 3-9 Add Element Window
To add an element:
Adding Elements Instructions
Or
Click on the Add toolbar button.
To select an element type from the Adding Elements window:
This brings up the Select Element Type window as shown in Figure 3-10.
Figure 3-10 Select Element Type Window
If you are adding elements that use FML buffers, you may also want to add some new FML field names.
To add an FML field name:
This brings up the Select FML Field window as shown in Figure 3-11.
Figure 3-11 Select FML Field Window
Or
To create a new FML Field name, click New and type the new name. To create a new FML Field Number for the new field name, type the number or use the default. To accept the default, click on the Next button. (For information on how to set the default next FML field number, refer to Setting the Default Next FML Field Number.)
You can set a default number to be used for the next FML field that you create. The number you specify is used as a starting point. This number will automatically increment as you add elements with FML fields.
To set the default next FML field number:
This brings up the FML Settings window.
Figure 3-12 FML Settings Window