Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Creating a declarative trigger

Updated on June 30, 2021

In this step, you create a declarative trigger (Rule-Declare-Trigger) for each class you want to track.

Before you begin: Complete the Opening the appropriate model to review the default properties procedure.
Each class you want to track must have a corresponding model as defined in the Opening the appropriate model to review the default properties process. This rule executes the activity TrackSecurityChanges whenever you save an instance in the class.
  1. Select ApplicationNewDecisionDeclare Trigger to open the New Rule Instance form.
  2. In the Applies To field, enter the security-related class you want to audit.
    For example: Select Data-Admin-Operator-AccessGroup from the Smart Prompt.
  3. In the Purpose field, enter any meaningful name, select your application RuleSet, and click Create to open the rule form.
  4. In the Declare Trigger rule form:
    1. Select Saved in the Trigger When An Instance Is field.
    2. Enter TrackSecurityChanges in the field Trigger Activity —.Name.
  5. Save the rule.
What to do next: Complete the Verifying your new auditing changes process.
    • Previous topic Opening the appropriate model to review the default properties
    • Next topic Verifying your new auditing changes

    Have a question? Get answers now.

    Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

    Did you find this content helpful?

    Want to help us improve this content?

    We'd prefer it if you saw us at our best.

    Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

    Close Deprecation Notice
    Contact us