Configuring the DataSet-Execute method for Decision Data Store
You can automate data management operations on records that are defined by the Decision Data Store data set by using the DataSet-Execute method. You can perform these operations programmatically, instead of doing them manually.
- Create an activity rule from the navigation panel, by clicking , to start the DataSet-Execute method.For more information, see Activities - Completing the New or Save As form.
- Click the activity Steps tab.
- In the Method field, enter DataSet-Execute.
- In the Step page field, specify the step page on which the method operates, or leave this field blank to use the primary page of this activity.
- Optional: Enter a description for the method.
- Click the Arrow icon to the left of the Method field to expand the Method Parameters section.
- In the Data Set field, enter the name of the data set that is used to represent data in decision data stores.
- In the Operation list, select the type of operation. Depending
on the type of operation, specify additional settings:
- To specify the Save operation, go to step 9.
- To specify the Browse operation, go to step 10.
- To specify the Browse by keys operation, go to step 11.
- To specify the Delete by keys operation, go to step 12.
- To specify the Delete track operation, go to step 13.
- To remove all records from the decision data store, choose Truncate.
- Save records passed by a page or data transform in the decision data store by
specifying the Save operation by performing the following
actions:
- Select the Save list of pages defined in a named page check box to save the list of pages from an existing Code-Pega-List page.
- Select the Specify time to live (in seconds) check box to specify the life span of the records in the decision data store. This parameter accepts constant values (for example, 3600), property references of values calculated through expressions.
- Select the Save single track check box to save a single track represented by an embedded property. You can also specify this property by using an expression. All other properties are ignored if you specify the single track.
- Read records from the decision data store by specifying the
Browse operation by performing the following actions:
- In the Maximum number of records to read field, enter a value to define the threshold for stopping the browse operation. You can also define this value through an expression.
- In the Store results in field, define the result page. The result page consists of an existing Code-Pega-List page.
- Read records from the decision data store by a key by specifying the Browse
by keys operation by performing the following actions:
- Select a key and enter the key value. You can also define the key value through an expression.
- To define more than one key, click Add key.
- In the Store results in field, define the result page. The result page consists of an existing Code-Pega-List page.
- Remove records from the decision data store by a key by specifying the
Delete by keys operation by performing the following
actions:
- Select a key and enter the key value. You can also define the key value through an expression.
- To define more than one key, click the Add key button.
- Remove a single track from the decision data store by specifying the Delete
track operation by performing the following action:
- In the Track name field, specify the embedded property that
identifies the track to be removed by this operation. You can also specify this
property using an expression.
- In the Track name field, specify the embedded property that
identifies the track to be removed by this operation. You can also specify this
property using an expression.
Previous topic Configuring the DataSet-Execute method for Database Table Next topic Configuring the DataSet-Execute method for Event store