Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Policy Management for Autonomic Computing: Solving a business problem using PMAC

How to create an autonomic policy to manage a business scenario

Eric Kirchstein (ekirchst@us.ibm.com), Software Engineer, IBM
ekirchst photo

Eric Kirchstein is a Software Engineer for IBM working with autonomic computing technologies, where he specializes in XML programming technology and methodology. Before working with autonomic computing technologies, Eric worked on Tivoli Service Level Advisor as a Java programmer and DB2 focal point. He has a B.S. degree in Computer Science from North Carolina State University, is an IBM Certified Specialist in DB2 UDB V6.1/V7.1, and a Level 1 plateau inventor.

Summary:  Businesses of all types have policies that dictate the behavior of their IT resources, human resources, business rules, and so on. Policy Management for Autonomic Computing (PMAC) provides a mechanism and environment for creating and enforcing policies and automating these business scenarios. By using PMAC in this manner, your business will run more efficiently and with less process errors.

Date:  20 Sep 2005
Level:  Intermediate PDF:  A4 and Letter (50 KB | 13 pages)Get Adobe® Reader®

Activity:  24373 views
Comments:  

Constructing the policy Condition if statements

This section breaks down each of the if-then statements from the previous section into the Condition (also known as if) component of the policy document. To really understand what is going on in this section, you must be familiar with the content of the "How to write a complete XML policy using PMAC" tutorial (see Resources).

The customer reward if statement

As you did in the "How to write a complete XML policy using PMAC" tutorial (see Resources), you first need to reword the if statement in the previous section to resemble an equation. In the case of the "if the customer spent more than $4000 in the last six months, and more than $10000 last year" statement, you could rewrite it as such:


Listing 3. Rewriting customer reward statement
if (the customer's orders over last 6 months > $400) and 
   (the customer's orders for last year > $10,000)

That's pretty simple, right? Try to write the same sort of statement for the "if the customer spent over $4000 in the last six months, but less than $10,000 last year" condition. Check your answer by looking at the customer_if_answer.txt file from the sample code zip file that you can download from this tutorial.


The server provisioning if statement

Let's create a statement that resembles an equation for the server provisioning if statement in the previous section. The "if there are currently ten or less servers online, and there are currently more than 3000 active connections" statement could be rewritten as:


Listing 4. Rewriting server provisioning statement
if (the number of servers <= 10) and 
   (the number of active connections > 3000)

5 of 14 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Tivoli
ArticleID=129387
TutorialTitle=Policy Management for Autonomic Computing: Solving a business problem using PMAC
publish-date=09202005
author1-email=ekirchst@us.ibm.com
author1-email-cc=