7.11. Deploying Rules

The Rules Engine Deployment Wizard, shown in Figure 7-36, enables you to perform all the deployment tasks required for rules, including deploying a policy that has been published or undeploying a policy that has already been deployed.

You can publish and deploy from within the Business Rules Composer, but in most cases deployment is owned by another department within your organization, which is where the Rules Engine Deployment Wizard comes in.

Figure 7.36. Figure 7-36

The permission to deploy a policy is restricted to BRE administrations; "normal" BRE developers are now allowed to deploy policies. Such permission is granted via the RE_Admin_Users SQL Server role, which by default includes BizTalk administrators.

7.11.1. Programmatically Deploying Rules

The Rules Composer and Deployment Wizard cover almost all deployment cases, apart from a scenario whereby you need to deploy rules from an automated script. A daily build and deployment of your solution is a classic example.

The Deployment Wizard cannot be called from a command line with parameters to automate deployment, which has caused many problems for configuration managers looking to automate the entire build and deployment of a solution.

Although a tool is not available out of the box, you can deploy rules via the Rules Engine API, and specifically the RuleSetDeploymentDriver class. The following ...

Get Professional BizTalk® Server 2006 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.