Creating an XPATH Parameter
To create an XPATH parameter:
-
From the Studio menu, select Show Design Perspective.
-
Click the tab for the Dictionary view.
-
Right click in the Dictionary view and select Add Simple Schema Element.
The Create Data Schema Element wizard appears.
-
Enter the following:
-
In the Entity field, enter the name of the project to which you want to add a scalar parameter.
-
In the Name field, enter an element name.
-
In the Display Name field, enter a display name. The Data Schema editor supports multiple languages for this field. The field adjacent to Display Name displays your language. You can define a Display Name field value for any language you select from the list. For more information, see the Oracle Communications Design Studio Help.
-
In the Multiplicity field, select one of the following:
-
Required: This attribute makes the parameter mandatory.
-
Optional: This attribute makes the parameter optional.
-
Range: Any ranged parameter with a Minimum value greater than 0 is considered a mandatory ASAP parameter. Any ranged parameter with a Minimum value of 0 is considered an optional ASAP parameter.
-
-
-
Click Finish.
The new parameter appears in the Dictionary view. You may need to expand the schema for your cartridge to see it.
-
Double-click the new parameter to open the Data Schema editor with that parameter selected.
-
Click the Activation subtab.
-
From the Runtime type list, select XPATH.
-
(Optional) Select Indexed to index the parameter.
-
In the Dependent XML field create or select a dependent XML. This attribute displays the path of the XML file that defines the parameter. This field is available only for the XPATH run-time type parameter.