To add a custom action to CentraSite, perform the following high-level steps:
Create a custom action category.
During this step, you specify the type of the category and details for
the category. For more information, see Creating a Custom Action
Category.
Add an action template to the custom action category.
During this step, you specify details for the action template, upload
its associated action rule (if appropriate), and select the object and event
types to which this template applies. For more information, see
Adding an Action Template to a
Custom Action Category.
Add a parameter template to the action template.
During this step, you add one or more parameter templates, and specify
their input values. For more information, see Adding a Parameter Template to the Action
Template.
Perform these steps to create a custom action category and save it to CentraSite.
To create a custom category
In CentraSite Control, go to
> .Click the Policy Information panel.
button in the upper-right corner of theIn the
dialog box, do the following:Specify a name for the new custom category.
An action category name does not need to be unique within the CentraSite Registry. However, to reduce ambiguity, you should avoid giving multiple action categories the same name.
An action category name can contain any character (including spaces).
Choose the type of template that the category will contain (e.g., Design/Change-Time or Run-Time templates).
Click
.Perform these steps to add an action template to a custom action category and save it to CentraSite.
To add an action template to a custom action category
In CentraSite Control, go to
> .Click
.If a custom action category does not yet exist, the Creating a Custom Action Category. After you create a custom action category, the Add Action Template page is displayed, and is described in the next step.
dialog box is displayed, prompting you to create a custom action category now, as described inIn the Add Action Template page, do the following:
In this field... | Do the following... |
---|---|
Category |
Select the action category for which you want to add the action template. |
Name |
Enter a name for the new action template. Follow these guidelines:
|
Description |
Optional. Type a description for the new action template. This description appears when the user displays a list of action templates in the Policy Information panel. |
Type |
No action is necessary. By default, CentraSite sets the action type to Programmatic for a design-time or change-time action, and Axiomatic for a run-time action. |
Implementation |
For a programmatic action (a design-time or change-time action), specify whether the action’s rule is a Groovy script or a Java class. |
Uploaded File |
For a programmatic action, click the button and upload the action's rule file.
|
In the Scope panel, do the following:
In this field... | Specify... |
---|---|
Object Types |
Select the type of objects to which this action template applies. |
Event Types |
Select the type of events to which this action template applies. Note: |
Click
.Upon saving the action template, CentraSite displays the Edit Action Template Detail page. You will use this page's Parameter Templates profile to add parameter templates for this action.
To complete the action template, you must define its input parameters.
To add a parameter template to the action template
If you are beginning this procedure immediately after completing Adding an Action Template to the Action Category, skip to step 4.
In CentraSite Control, go to
> .Select the action template for which you want to define parameter templates.
In the Edit Action Template Detail page, select the Parameter Templates profile.
Click the Add Parameter Template button.
Define the first parameter as follows:
In this field... | Do the following... |
---|---|
Name |
Enter a name for the new parameter template. |
Type |
Select a data type. |
Default Value |
If you want to specify a default value, type a value in this field. If the selected data type is String, Number or URL, you can specify one or multiple default values. You can specify multiple possible default data values from which to choose as follows:
Note: |
Array |
Select this check box if you want the data type as an array. |
Required |
Select this check box if you want the parameter template to be mandatory. |
If you need to define additional parameters, click the Add Parameter Template button again and repeat the previous step.
Click
and then .The parameter templates that you added appear under the Parameter Templates profile.