Skip to main content


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

Security tab on the Activity form

Updated on January 14, 2022

Use the Security tab to specify the activity type and optionally to restrict which users (or other requestors) can execute the activity. This optional security supplants restrictions based on ruleset and version.

You can specify zero, one, or more than one privilege to restrict access. Order is not significant. At run time, any match between a privilege listed and those a user possesses allows users to execute this rule.

FieldDescription
Restrict access
Allow invocation from browserSelect to allow users to start this activity directly through user input processing, for example through a Submit button or a pyActivity= element in an URL. Clear this if this activity is to be started only from another activity, through a Call, Branch, or other means.

For example, select the box for a service activity, or if this activity is called by an AJAX event from a form.

At run time, if the box is not selected and a user attempts to start this activity by user input, the activity does not run and returns a method status of Fail:Security.

For most activities, leave this box cleared to promote security of your application. Unless needed by your design, allowing activities to be started from a URL or other user input — whether the requestor is authenticated or a guest — may let users bypass important checking, security, or setup.

Require authentication to runSelect to require that only authenticated requestors can start this activity.

Clear to allow guest users to run this activity, if they meet other security and access criteria. Guest users — unauthenticated requestors — typically have access to rules in the RuleSets provided in the PRPC:Unauthenticated access group, as referenced in the Requestor type instance named pega.BROWSER.

Caution: If you update the BROWSER requestor type to reference a different access group, or update the PegaRULES:Unauthenticated access group to make additional rulesets available to unauthenticated users, review carefully this check box for each activity in the rulesets. Select this check box for all but those specific activities that guests need to run.

In most cases, clear this check box if the activity is for an agent. Agents are not true authenticated users and by default cannot run activities that are restricted to authenticated users. However, this check box is ignored by agents for which the Bypass activity authentication check box (on the Security tab is checked; they can run activities regardless of the Authenticate? value.

Identify privileges in this array to restrict which users and other requestors can execute this activity. At run time, if the user does not possess an access role that — through an Access of Role to Object rule — provides access to one of the identified privileges, the execution of the activity fails.

Privilege ClassOptional. Identify the Applies To key part of a class to use at run time to locate a privilege rule. Normally this is the same as the Applies To key part of this activity.
Privilege NameOptional. Identify the name for a privilege in that class (or an ancestor class). The class you enter and the name must together identify a privilege (using rule resolution including class inheritance.)
Usage
Activity Type

Determine whether and how this activity can be referenced in other rules. For an activity that is not to be referenced in a flow, choose one of these values:

ActivitySelect when no more specific value is applicable. Activities with this value cannot be referenced directly in flows. (Select Activity for this field on Parse Structured forms.)
AsynchronousSelect for an activity that runs in a background thread asynchronously. The activity can call only these step methods: Load-DataPage, Connect-Wait, and Call-Async-Activity (step instruction to allow user to load an asynchronous activity)
LoadDeclarativePage Select for an activity that adds values to data pages. Reference this activity on the Definition tab of a data page rule (Rule-Declare-Pages rule type).
LocateThe Locate activity type is not supported. Existing activities that use locatable pages display this option. New activities do not.
OnChangeSelect for an activity to be executed automatically by a Declare OnChange rule, Such activities must not use any methods that directly change the properties or the database.

Declare Expression rules do not evaluate during the execution of an OnChange.activity. OnChange activities must not perform any forward chaining themselves.

TriggerSelect for an activity to be executed automatically by a Declare Trigger rule. Because triggered activities run during database commits, they cannot themselves commit database transactions.

Select Notify, Rule Connect, Assign, Route, or Utility if the class of the activity inherits from the Work- base class and you designed and implemented the activity to be referenced in a flow shape. See How to create activities for use in flows for more details on these choices:

Choose Notify for a notification activity. For example, a notify activity can send an email message to someone conveying news of the assignment.
Choose Assign for an assignment activity, one that creates an assignment.
Choose Route for a router activity, one that determines which user worklist or work queue is to receive an assignment.
Choose Utility for a utility activity, one that automates processing without user interaction.
Choose Rule Connect for an activity that operates without user interaction and calls a connector rule to interface with an external system.

Do not choose Validate or Assembler for this field.

  • Previous topic Best practices for writing activities for background jobs
  • Next topic Defining the local variables for an activity

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