Day4 - PEGA Training
Day4 - PEGA Training
Day4 - PEGA Training
- Day4
By Vishnu Jaiswal
Agenda
2
Confidential
Properties
Need of Properties
Any application may require some data objects to move along with the work object.
This can be implemented using the properties of mode List or Group.
We need to create that property in your work class where each item of that list or group belongs to a
certain data class. (more details in the properties section)
Properties:
A property rule provides a name and characteristics for data in an object. Because a property definition
is a rule, it shares the benefits of versioning, inheritance, and access control that Process Commander
provides to all rules.
Define properties in your work class hierarchy to hold data
Property Names follow the same requirements as any identifier
Alphanumeric (must start with a letter)
No spaces, dashes, dots, etc.
Case-sensitive
3
Confidential
4
Confidential
Text
Integer
Identifier
Password
Double
Decimal
DateTime
Date
TimeOfDay
TrueOrFalse
A property of mode Java Object can contain any Java object while on the clipboard. If the Java class
supports the Serializable interface, a page containing this property can be saved into the Process
Commander database
PRPC standard properties are prefixed either with px or py or pz
px Computed properties that users can see on a form, but cant directly enter or change ( Such as
pxCreateDateTime). To alter this values activities can use a step method called Property-Set-Special
method
py Properties that users can enter or change via direct input ( such as pyDescription ) . To assign
these values programmatically, activities can use step method called Property-Set method
pz Properties with names that start with pz support internal system processing. Users cannot directly
manipulate pz properties. Your application may examine these values, but do not set them.
5
Confidential
6
Confidential
Identify the
parent class.
Select to indicate
that this property
defines a unique
key to the class.
Optional. If the
allowable values of
this property are
defined by the key
values of another
class that has a
single key part,
identify that class
here.
Define Single
Value properties
using this array.
7
Confidential
Models
When you create a page, you can opt to specify a model rule to initialize a page
Set property values in a model
Similar to constructors in Java and C++
Does not take arguments/parameters
By convention, named pyDefault
Subclass models call superclass models that have the same name
To create a model in work class that initializes certain properties
Examine the default model for Work- before creating a model
Property values set in your model override any set by the models in Work- (and other parent)
classes
Initialize all application-specific data
8
Confidential
Model Chaining
This is the process to apply any model of the same name defined in parent class to the current page
9
Confidential
Thank You !