Question
4
Replies
2799
Views
Posted: September 8, 2017
Last activity: September 8, 2017
Closed
Java,Java Script,Ajax in Pega
how to call an activity from the java, java script,Ajax?
***Updated by moderator: Lochan to add Categories***
Hi Yatish,
In Java you can call this way,
ParameterPage newParamsPage = new ParameterPage();
newParamsPage.putString("EmployeeName", "Mahesh"); -> This is the parameter which my GetEmployeeData activity will take as input
HashStringMap params = new HashStringMap();
params.putString("pxObjClass", "Rule-Obj-Activity");
params.putString("pyClassName", "Mahesh-Case1");
params.putString("pyActivityName", "GetEmployeeData");
tools.doActivity(params, null, newParamsPage);
Hope this is clear to you.
Regards
Mahesh