Posts

Work-.FinishAssignment timeline

Here is the timeline of the most important events that happen during the execution of the Work-.FinishAssignment activity.

This timeline corresponds to the Work-.FinishAssignment activity stored in the ruleset Pega-ProcessEngine:08-04-01.

How to discard a rule from another operator

Yesterday, I ruined my Dev Studio access because I private-edited an OOTB rule (pzpega_ui_invoke.js). So I needed to discard it urgently or I would lose my operator and all my work. Unfortunately I no longer had access to the Dev Studio using my operator so I needed to do it from another operator. Here's how I accomplished it.

In short, I executed the following SQL (through a Connect SQL rule):

DELETE FROM {Class:RULE-FILE-TEXT} WHERE pyrulename='webwb pzpega_ui_invoke js' AND pyruleset='deivit@';

DELETE FROM {Class:Data-Rule-Summary} WHERE  pyrulename='webwb pzpega_ui_invoke js' AND pyruleset='deivit@';

How to call an activity from the client using the "asyncRequest" JavaScript function

Here is a quick example where we execute the @baseclass.pyUtilityStub activity via an HTTP request using the POST method. In addition, we pass five parameters to that activity, three of them are passed in the query URL and the other two are passed in the body of the POST request. Note that we can pass the pzPrimaryPageName parameter to set its primary page.

var oSafeURL = new SafeURL("@baseclass.pyUtilityStub");
oSafeURL.put("pzPrimaryPageName", "pyWorkPage");
oSafeURL.put("parameterGet1", "valueGet1");
oSafeURL.put("parameterGet2", "valueGet2");

var postData = new SafeURL();
postData.put("parameterPost1", "valuePost1");
postData.put("parameterPost2", "valuePost2");

pega.u.d.asyncRequest("POST", oSafeURL, null, postData);