How to use work class activity in data class activity? It is not showing work class activities

How to use work class activity in data class activity? It is not showing work class activities

@Satya K

If its in the inheritance path, you can either use it as Call . or define a page of the Work class and call the activity under the Step Page.

@Satya K

Prefix the WorkClass.Activity Name to invoke the activity rule from the Data layer.

Step Page is another option.

Attached are screenshots for your reference.

Hi @Satya K,

Here are the steps to ensure that a data class can access or reference a work class activity in Pega:

  1. Ensure Proper Class Inheritance
  • Check if the data class and the work class are part of the same hierarchy using pattern inheritance. If the data class can inherit from the work class (or a common parent class), it will allow activities to be shared between the classes.
  • Go to the data class rule and check the pattern inheritance and direct inheritance settings.
  • If pattern inheritance isn’t possible, ensure that the data class inherits directly from the work class. You can change the direct inheritance in the class rule form.
  1. Use the Call Method to Explicitly Call the Work Class Activity
  • If inheritance setup isn’t possible or desirable, you can use the fully qualified name of the activity in your data class activity using the Call method.

Additionally, you can give the work page class in the pages and classes tab. For example, if you want to use the Work- class, then give Work-.SendSimpleEmail.

For your reference I am giving screenshots