Discussion

83
Views
TSUCK Member since 2010 125 posts
PEGA
Posted: 2 months ago
Last activity: 2 months 4 weeks ago

How to call an activity from batch file

Hi,

In this post I am sharing how to call an activity from outside of PRPC such as batch file for Windows, shell for UNIX. In summary, the easiest way to do this is to wrap your activity in a Service HTTP and call it from either wget or curl command.

 

URL:

http://<host>:<port>/prweb/PRHTTPService/<service package>/<service class>/<service method>?<parameter name=parameter value>&<parameter name=parameter value>​

Steps:

1. Create an activity.

2. Create a Service Package.

3. Create a Service HTTP rule.

4. Call it from wget or curl.

 

I have documented How-to as attached. Hope this helps.

 

Thanks,

 

Pega Platform 8.4
Share this page LinkedIn