ILOG Rules for .NET User Guides > Rule Studio > Storing and Sharing Rules > Updating a Rule Project

When you update a rule project, you retrieve the rules in the RuleDocs from a repository--Rule Team Server or a local file system--and use them to update the rules in the corresponding rule project in Visual Studio .NET.

During the update process you can encounter cases in which you need to make decisions about which version of a rule you want to keep. For example, if a rule has been modified in both ILOG Rule Studio for .NET and Rule Team Server, you need to decide on one of the following actions:

Note
You cannot update a Visual Studio rule project with RuleDocs published from a different rule project.

Updating with Rule Team Server for SharePoint

SharePoint Rights for Updating

To update rule projects you need the following SharePoint rights:

These rights are determined by the SharePoint administrator using SharePoint profiles--Reader, Contributor, Web Designer, Administrator, and custom groups--and the settings for each rule document library.

Note
Before updating a rule project from Rule Team Server, make sure that all the RuleDocs in the document library from which you are updating are checked-in.

To update a rule project with Rule Team Server for SharePoint
  1. On the shortcut menu for the rule project, click Update.
  2. Rule Studio opens the Update Wizard.
  3. Select ILOG Rule Team Server for SharePoint.
  4. Specify the SharePoint Site URL and Document Library for the rule project:
  5. For SharePoint publishing, specify the User Name and Password to log into the SharePoint site.
  6. Note
    If you leave the User Name and Password boxes empty, Rule Studio tries to connect to SharePoint using your Windows user name and password. You cannot continue in this procedure without a successful connection to a SharePoint site and a login that has the right to publish rule projects.
  7. Click Next.
  8. Rule Studio lists the names of the rules to be updated, their status, and the suggested action. Rules that cause conflicts are marked, and you can change the suggested actions manually.
    For more information on the actions you can take, see Publish and Update Actions.
  9. Adjust the actions as needed.
  10. To adjust an action, click on a rule and select an action from the list of suggested actions.
  11. In the Store new rules in file field, select a rule file from your project if you've added new rules on the Rule Team Server side.
  12. Any new rules are appended to this file.
  13. When you are ready to update the rule set, click Finish.
  14. Rule Studio updates the rule project, and displays a log of the operation.
  15. Click Close.

Note
When you update with Rule Team Server the RuleDocs are checked out. This makes sure that no-one can modify them during the update operation. When you click Finish in the Update Wizard, the RuleDocs are checked in again.

Updating with a File System

It is possible to update a rule projectr in Rule Studio from a previously saved directory hierarchy on a file system.

To update a rule project from a file system
  1. On the shortcut menu for the rule project, click Update.
  2. Rule Studio opens the Update Wizard.
  3. Select Local or Remote Folder.
  4. Specify the Root Folder and Rule Project Folder for the rule project.
  5. Click Next.
  6. Rule Studio lists the names of the rules to be updated, their status, and the suggested action. Rules that cause conflicts are marked, and you can change the suggested actions manually.
    For more information on the actions you can take, see Publish and Update Actions.
  7. Adjust the actions as needed.
  8. To adjust an action, click on a rule and select an action from the list of suggested actions.
  9. In the Store new rules in file field, select a rule file from your project if you've added new rules on the file system side.
  10. Any new rules are appended to this file.
  11. When you are ready to update the rule set, click Finish.
  12. Rule Studio updates the rule project, and displays a log of the operation.
  13. Click Close.

See Also

Publishing a Rule Project | Publish and Update Actions | Update Wizard