This content has been archived and is no longer being maintained.

Table of Contents

Article

runActivity: Public JS API for control actions

runActivity

Run activity from script.

Syntax

var options ={<br />
name: “activityName ",<br />
parameters: [{name: "
param1", value: "Page1.prop1", isProperty: true}, {name: "param2", value: 123, isProperty: false}],<br />
contextPage: "
page1.page2",<br />
event: eventObject<br />
};

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.

Published February 15, 2017 — Updated April 6, 2017


50% found this useful

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.