Links may not function; however, this content may be relevant to outdated versions of the product.
runActivity: Public JS API for control actions
runActivity
Run activity from script.
Syntax
var options = {
name: “activityName ",
parameters: [{name: "param1", value: "Page1.prop1", isProperty: true}, {name: "param2", value: 123, isProperty: false}],
contextPage: "page1.page2 ",
event: eventObject
};
pega.api.ui.actions.runActivity(options);
Parameters
This API accepts a JavaScript object which can have the following key-values.
- name: The name of the activity to be run.
- parameters: Optional. The array of the activity parameters in JSON format.
- contextPage: Optional. The page that provides the context in which the activity will run. When not set, the activity will run in the primary page context.
- event: The event refers to a DOM eventObject.