Question

Accenture
IN
Last activity: 3 Jan 2017 2:44 EST
Getting an error "You lack acces required to run Rule-Obj-Activity.." when calling the activity from Java
I have an activity with a java step where i am calling an activity.PFB the code:
HashStringMap keys = new HashStringMap();
keys.putString("pxObjClass", "Rule-Obj-Activity");
keys.putString("pyClassName", "Rule-Obj-ReportDefinition");
keys.putString("pyActivityName", "RetrieveReportData");
ParameterPage paramPage = new ParameterPage();
tools.doActivity(keys, myStepPage, paramPage);
While running this activity standalone(Direct invocation enabled), it is throwing an error at the java step, showing You lack acces required to run Rule-Obj-Activity.RetrieveReportData
Can anyone help me with this?
Thanks,
Chiranjeet
***Updated by Moderator: Lochan. Removed user added Ask the Expert tag. Apologies for confusion, shouldn't have been an end-user option; updated Categories***