Importing a Schema
Use
You can import a schema or a WSDL file into the rules composer DC. When you import a WSDL file that has a schema, the rules composer DC extracts the schema and allows you to write rules using that schema.
Procedure
-
In the Project Explorer view, expand the rules composer DC node, and the src node.
-
In the context menu of the wsdl node, choose
-
In the wizard that appears, expand the Web Services node and choose XSD or wsdl . Choose Next.
-
In the screen that appears, choose Browse and specify the folder in your workspace where the schema file has to be placed and choose Remote Location / File System . Choose Next.
-
In the screen that appears, choose Browse and choose the schema file in your system. Choose Finish.
Copy and Paste the schema file
-
Copy the schema file from your file system.
-
In the Project Explorer view, expand the rules composer DC node, the SRC node and in the context menu of the wsdl node, choose Paste. .
Create a new schema file
-
In the Project Explorer view, expand the rules composer DC node and the SRC node.
-
In the context menu of the wsdl node, choose
-
In the screen that appears, enter the name of schema file along with the file extension in the File Name filed. Choose Finish.
-
Double-click the new schema file and enter the content.
Adding the XSD Elements to the Rules Composer DC
A schema file can contain multiple elements, you can add the required XSD elements to the rules composer DC.
-
In the Project Explorer view, expand the rules composer DC node, the Rules Modeling node and double-click the Project Resources node.
-
In the Project Resources editor, choose the Aliases tab.
-
In the Aliases editor that appears, choose the Add button and in the menu that appears, choose XSD Element
-
In the Add XSD Element dialog box that appears, expand the namespace node and choose the root element.
-
Choose one of the two radio buttons that allow you specify how you want to generate XPath aliases:
-
Create all default XPath aliases for the selected element
-
Choose the Create XPaths button in the Aliases editor and create required XPaths
-
-
Choose Click here to set alias generation preferences (Optional)
-
In the screen that appears, you can select the checkbox in the Alias Generation section if you want to use namespace prefixes for aliases
-
You can select the desired checkboxes in the Edit visibility setting for advanced aliases section. (Optional)
-
You can enter the limit in the XPath Recursion Limit field. (Optional)
-
Choose Finish and save the changes.
If you choose to generate only specific XPath aliases:
-
In the Aliases editor, choose the Create XPath button
-
In the Create XPath Aliases dialog box, expand the root element and press Ctrl and choose the elements for which XPath aliases need to be generated
-
Choose OK .
You should see the XPath aliases in the Alias Name table.

