Creating a policy in a CICS bundle project
A policy is an XML definition that contains one or more policy rules that trigger an automated action when the specified condition is met. Policy rules can apply to a CICS® system or an individual user task. You can use CICS Explorer® to define policies in a CICS Bundle project, which allows you to maintain and deploy policies as a whole.
Before you begin
About this task
What rules can be defined within a policy?
CICS supports system and task rules. A system rule monitors and controls the overall health of a CICS system, and a task rule monitors and controls an individual user task. Each policy rule defines the conditions that must be met before an automated action is performed. Each policy can define one or more rules and multiple policies can apply to the same CICS system or one individual user task.
Taking policy scope into consideration when defining policy rules
When defining policies, it's useful to consider what scope you want to deploy the policies into. The following table shows policy scopes that are applicable to different rule types.
| Policy scope | Task rules | System rules |
|---|---|---|
|
Region level
(deployed into a CICS region) |
Yes. 1 Rules apply to all user tasks running in the specified region. |
Yes. Rules apply to all tasks (system or user) in the specified region that make changes to system or resource state. |
|
Platform level
(deployed with a CICS platform) |
Yes. Rules apply to all user tasks for any CICS application that is deployed on the specified platform. |
Yes. Rules apply to all tasks (system or user) in all regions of the specified platform that make changes to system or resource state. |
|
Application level
(deployed with a CICS application) |
Yes. 1 Rules apply only to the users tasks for the specified application and not to other user tasks that might run on the same platform. |
NA. Policies that define system rules cannot be deployed at the application level. |
Although system and task rules can be defined in the same policy, you must define the two types of rule in separate policies if you want to deploy any policy that defines task rules with a CICS application.
1 : If a policy contains task rules that are deployed at the region or application level, you can further restrict its scope to specific user tasks by defining a policy scope or condition filters. For more information, see Restricting a task rule policy to specific user tasks in a single CICS region.
Procedure
Results
What to do next
You can now deploy your new policy using CICS Explorer. For instructions, see Deploying a policy in a CICS bundle project.
