Muokkaa

Jaa


Manage policies

Overview

The topics in this section provide instructions on using the BizTalk Server Administration console or the BTSTask command-line tool to manage policies. A policy is a logical grouping of business rules. For background information on policies, see Policies.

Import, publish, deploy, and remove policies

Solution developers can create and view policies by using the Business Rule Composer, as described in Creating Business Rules Using the Business Rule Composer. Developers and IT administrators can then perform the following tasks, which are described in the topics in this section, to deploy and manage policies in a BizTalk group and application:

  • Import the policy into a BizTalk group. When you do this, the policy is added to the Rule Engine database for the group and displays in the BizTalk Server Administration console in the <All Artifacts> node for the BizTalk group. This does not put the policy into effect for any particular application. You must first publish the policy, add it to an application, and then deploy it, as described in other topics in this section. The Rule Engine database is a database that contains all of the policies in a BizTalk group.

  • Publish a policy. This makes it available to use in a BizTalk application.

  • Add a policy to a BizTalk application. This allows the application to use the policy, but does not put the policy into effect. The policy takes effect when it is deployed.

    Important

    If a policy is shared across two or more applications, you should create a separate application to contain the policy and then create references from the applications that use the policy to the application containing the policy. This is because if you stop an application that contains a policy, the policy is automatically undeployed and no longer functions for any of the applications that use it.

  • Deploy a policy. Doing this puts it into operation. (This is similar to starting an orchestration.) You can deploy and undeploy a policy manually. In addition, when an application is started, its policies are automatically deployed, and when an application is stopped, its policies are automatically undeployed.

    Note

    Once a policy is deployed, it can no longer be modified. If you want to modify a deployed policy, you must either undeploy it, or recreate it by using the Business Rule Composer and give it a new version number.

  • Remove a policy from a BizTalk application and the BizTalk group. This undeploys the policy and removes it from the application as well as the Rule Engine database for the group.

  • Export the policy. You can then import it into a different BizTalk group to use there.

Note

You can use Microsoft Windows Management Instrumentation (WMI) Object Model to create and run scripts that automate administrative tasks. For information about using WMI, see the WMI Class Reference in the UI guidance and developers API namespace reference.

Next steps