Software AG Products 10.7 | CentraSite for Developers | Custom Policy Actions | Custom Policy Actions
 
Custom Policy Actions
 
Action Categories
Action Templates
Parameter Templates
Viewing Action Categories List
Creating Custom Actions Using the CentraSite UI
Adding an Action Template to a Custom Action Category
Adding Parameter Template to Action Template
Creating Action Rules in a Java Class
Uploading Action Rules to Action Templates
Viewing or Modifying an Action Category
Viewing or Modifying an Action Template
Downloading Rules from System Action Templates
Delete Custom Action Categories and Templates
Versioning a Custom Action Template
Sample Java Action: Enforce Unique Asset Names
You can use a policy to execute a task that is not provided by a built-in action by creating a custom action. For example, a custom action can consist of a Java class that performs the required task, such as running a test, creating a required attribute, or logging an entry in an external database. You can insert custom actions into a policy.
Creating a custom action consists of the following high-level steps:
1. Create a custom action category to associate the action.
2. Create an action template to specify the scope of objects and events to which the action applies.
3. Specify the location of your custom action rule to be used in a design or change time policy for an action template.
4. Add parameter templates to define the parameters that serve as input parameters to the action.
There are two ways you can add custom actions:
*You can use CentraSite Control to create action categories and action templates, and create action rules using Java programs. You then upload the rules into action templates when you create the action templates, using CentraSite Control.
*You can create action categories, action templates, and action rules using Java programs. You then upload the rules scripts to action templates using JAXR-based calls in the action templates.
To create and manage action templates for design/change-time policies, you must belong to a role that includes the Manage System-wide Design/Change-Time Policies permission. By default, the following predefined roles include the Manage System-wide Design/Change-Time Policies permission:
*CentraSite Administrator
*Asset Type Administrator
*Operations Administrator