Software AG Products 10.7 | CentraSite for Developers | Custom Policy Actions | Custom Policy Actions | Action Templates
 
Action Templates
An action template specifies the object and event types to which the action applies. In addition, an action template for a design or change time policy contains your custom action rule, which fires when the action executes.
Types of Actions
CentraSite supports the following types of actions:
*Manual Actions are long-run processes that involve manual user intervention to complete the execution of the action. For example, Approval.
Note:
Although CentraSite allows you to use system-defined manual actions in creating policies, you cannot create a new manual action.
*Axiomatic Actions are simple actions used to configure parameters. No code is involved in the execution of axiomatic actions. Axiomatic actions are used in run-time policies.
*Programmatic Actions are usually executed by means of program code. Specifically, a programmatic action triggers an action rule when the action executes. You write an action rule as a Java class. Programmatic actions are used only in design/change-time policies. CentraSite provides sample action rules. You can upload action rules when you create a custom action template.
Supported Object Events
It is possible to create an action template whose scope encompasses any combination of object types and event types, however, not all combinations are enforceable. This is because, certain types of events do not occur for certain types of objects.
For example, a PreStateChange event occurs only on Assets, Policies, and Lifecycle Models. If you create a policy for a PreStateChange event on a User object, that policy does not execute because a PreStateChange event does not occur on a User object.