ILOG Rules for .NET User Guides > ILOG Rule Team Server for SharePoint > Creating Rule Team Server Pages > Step 4: Add and Connect the ILOG Web Parts

In Step 3 you added the rule document library to the Web Part page created in Step 2.

In this final step you will add and connect the ILOG Web parts, which let business users edit rules directly within Rule Team Server.

Note
Rules can also be edited in Microsoft Office 2007 if you install ILOG Rule Solutions for Office.

If you were interrupted after finishing Step 3, return to your new Web Part page (click Documents, then Shared Documents, and then the name of your new page). Once in your new page, click the Site Actions button, and then Edit Page, to continue editing.

To add ILOG Web Parts
  1. Click Add a Web Part in the Left Column.
  2. Check RuleDoc Browser in the All Web Parts section of the dialog box labeled Add Web Parts -- Web Page Dialog.
  3. Click Add.

Follow the same steps to add the Rule Editor to the Middle Column and the Rule Property Editor to the Right Column.

Warning
If you get an error when adding the ILOG Web Parts, it is probably due to security settings on your site.

Once all the ILOG Web Parts have been added to your Rule Team Server page, you must connect them together so that data can flow between them. The order of connection is important, since the document library sends information to the RuleDoc Browser, which in turn sends information to the Rule Editor and the Rule Property Editor.

To connect ILOG Web Parts
  1. Click edit in the RuleDoc Browser title bar, click Connections > Get Row From, and then select the ILOG Rules Tutorial document library in the list.
  2. The message "The web part is not connected" no longer appears for the RuleDoc Browser.
  3. Still from the RuleDoc Browser, click edit in the title bar, and then click Connections > Send Row To > ILOG Rule Editor. This connects the Rule Editor to the RuleDoc Browser.
  4. Finally, again from the RuleDoc Browser, click edit in the title bar, and then click Connections > Send Row To > ILOG Rule Property Editor. This connects the Rule Property Editor to the RuleDoc Browser.
  5. Your Rule Team Server page is now complete. To exit Edit Mode, click Exit Edit Mode in the top right corner of the page.
  6. To verify that your page is working correctly, click the radio button next to one of the RuleDocs it contains to see the list of rules displayed in the RuleDoc Browser. Then, in the RuleDoc Browser, select a rule by checking its radio button to see the rule displayed in the Rule Editor and the rule properties displayed in the Rule Property Editor.

ILOG Ruleset Deployment Web Part

Another ILOG Web Part you can add to your page is the ILOG Ruleset Deployment Web Part. This Web Part allows you to deploy a ruleset directly from within SharePoint, instead of having to go through ILOG Rule Studio for .NET to do so.

Note
This feature is deprecated in ILOG Rules for .NET 3.0.

For more information on deploying rulesets, consult the ILOG Rule Studio for .NET documentation.

To add the ILOG Ruleset Deployment Web Part
  1. Go to your Web Part page (click Documents, then Shared Documents, and then the name of your page). Once in your page, click the Site Actions button, and then Edit Page, to start editing.
  2. Click Add a Web Part in the Footer (or wherever in the page you want to add the ILOG Ruleset Deployment Web Part).
  3. Check ILOG Ruleset Deployment in the All Web Parts section of the dialog box labeled Add Web Parts -- Web Page Dialog, and then click Add.
  4. Click the edit button, and then click Connections > Get Table From > ILOG Rules Tutorial.
  5. Click Exit Edit Mode.

You are now ready to deploy your ruleset.

To deploy a Ruleset using the ILOG Ruleset Deployment Web Part
  1. In the ILOG Ruleset Deployment Web Part, specify the location where you want the deployed ruleset (the .brc file) to be created, and then click the Next button.
  2. On the Customization page, you can customize how you want the ruleset to be created by checking any or all of the following options.
    Include the rule artifact properties in the generated ruleset 
    Includes the XML schemas in the output file, for those cases where the rule project items have custom rule properties. 
    Freeze the rule list in the rule tasks at compile time 
    Specifies that any changes to the rule artifacts in the rule task will not be taken into account at runtime. 
    Filter the rule artifacts to deploy 
    Lets you select a subset of rules in a project that you want placed in a ruleset for subsequent execution. 
  3. Click the Next button.
  4. Review the information contained on the Deployment page, and then click the Finish button to deploy your ruleset, or the Previous button to go back and change some details.
  5. Once your ruleset has been deployed, you are presented with a Report page that informs you that the deployment has been successful, or lists any errors which have occurred.