You are here: Reference > Rule types > About Activities
t

About Activities

  1. About 
  2. New 
  3. Steps 
  4. Parameters 
  5. Pages & Classes 
  6. Security 
  1. Test Cases 
  2. Specifications 
  3. History 
  4. Methods 
  5. More... 

As a best practice, consider alternatives such as data transforms and linked property references before creating activity rules. These are easier to understand and maintain. For ideas and approaches, see the PDN article Nine tactics to reduce your need for custom activities.

Activities automate processing. Activities contain a sequence of structured steps. Each step calls a method rule or contains a control instruction such as Call or Branch. Each activity has a type that characterizes its purpose and affects which other rules can call it.

The Steps tab contains the logic of the activity. These topics describe this tab:

When a requestor session runs an activity for the first time, the system converts information from the activity into Java, compiles the Java, and executes it. Later executions (of the same activity in the same ruleset, version, and so on) reuse the compiled Java.

After you unit test an activity, you can convert the test run into an automated test case or unit test case.

Do not use an activity for calculations or property validations that you can implement as constraints rules or Declare Expression rules. Use of a declarative rule (rather than an activity) eliminates the need to control how and when an activity executes. The Pegasystems Implementation Methodology approach promotes declarative processing rather than activities when feasible.

Access

Use the Application Explorer to access activities that apply to the work types in your application. Use the Records Explorer to list all activities available to you.

Category

Activities are part of the Technical category. They are instances of the Rule-Obj-Activity class.

definitionsimplementation methodology
Related topicsHow to create activities for use in flows
Standard rulesStandard activities — Extension points
Standard activities for flows
Standard activities — Process Engine API
Standard activities of type Activity

Technical category