Question

How to Invoke an Activity which is not in the Inheritance path

Hi Team,

I have defined a flow action in my work class and I need to invoke an activity (post-processing) which is defined in PegaAccel-Management-Import class. How Can I do it.

FYI, as mentioned in "https://pdn.pega.com/community/pega-product-support/question/calling-activity-different-class-button", I have created an activity in the same class as my Flow Action and tried to directly call the activity from PegaAccel-Management-Import class. But didn't help.

Got the following error:

Method—

Rule-Obj-Activity instance not found: HCL-CodeReview-Work.pySetFilePath. Details: Invalid value for Activity name passed to ActivityAssembler

I have even tried defining the PegaAccel-Management-Import class in Pages & Classes tab of the created activity. Still the same issue.

Thanks,

Vamsi.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
January 22, 2018 - 7:42am

​Try the following approach.

  1. Create a new activity in the inheritance path where your flow action can refer and include it as the post action.
  2. In this new activity add a step and call the relevant activity by giving the class reference.
    1. Ex -: Call PegaAccel-Management-Import.ActivityToBeCalled

Regards,

Yasantha

Comments

Keep up to date on this post and subscribe to comments

January 22, 2018 - 7:42am

​Try the following approach.

  1. Create a new activity in the inheritance path where your flow action can refer and include it as the post action.
  2. In this new activity add a step and call the relevant activity by giving the class reference.
    1. Ex -: Call PegaAccel-Management-Import.ActivityToBeCalled

Regards,

Yasantha