You can define a data page to save data to a system of record by using save plans. By
using save plans, you can save the updated information without an activity. For example you can
use a data page in a step in your process to edit a customer’s address by referencing the data
page from the step and listing it as a data page to save on the flow action.
The save plans that are available are Database save,
Activity, Robotic automation, and
Robotic desktop automation. Select Database
save when you configured the savable data page to maintain transactionality when
the data is saved. It is not guaranteed that transactionality is maintained if you select the
Activity save plan option. Select Robotic
automation or Robotic desktop automation when you are
using these options to source your data page and you want to write updated data back to the
external system of record.
-
After you create a data page, open the Defintion tab in the
data page rule form.
-
In the
Structure
field, select how you want the data in
the data page to be structured.
-
In the
Object type
field, enter or select the class that
the data page applies to.
-
In the
Edit mode
field, select
Savable.
-
In the
Scope
field, select the scope through which the
data page can be accessed.
-
Complete the fields in the
Data sources
section: to
identify the source of the data to populate the data page.
-
In the
System name
field, enter the name of the
system that is associated with the data source.
-
In the Source field, select the type of source that the
data comes from.
-
To process the data after it loaded, in the Post load
processing field, enter or select the name of an activity to process the
loaded data.
-
In the Save type field, select the plan that you want to use to
save the data.
-
If you selected Database save:
-
In the Class name field, enter or select the class whose
data you want to persist.
-
If the class in the Class name field is different than the
class of the data page, in the Data Transform field, click the
rule opener icon to create a Data Transform using a template. This data transform maps
the data page class to the Class name field.
- Optional:
In the Validate rule field, enter or select a validate
rule.
-
If you selected Activity, in the Activity
name field, enter or select the name of the activity to use to save the
data. You can use this option to create logic to persist data to any system, such as a
REST service.
Note: If you use an activity save plan, you must set the WriteNow
Boolean parameter that is passed to the activity to true if you want to save the data in
a separate transaction and false if you want to save the data in a single
transaction.
-
If you selected Robotic automation, enter the name of the case
type on which the Assign to robot queue smart shape is configured.
-
If you selected Robotic desktop automation, enter the robotic
automation ID that was created when the automation was developed in Pega Robotics
Studio.
- Optional:
Click +Add save option to create another save option for this
data page.
-
Click Save.
-
Choose one of the following ways to use the savable data page in your
application: