Escolar Documentos
Profissional Documentos
Cultura Documentos
5
BPM
What is BPM
6
BRE
7
PRPC
8
Knowing
>> Delivering
BPM, Value
BRE & PRPC,
Now let us see how does
the PRPC system
architecture look like…
9
PRPC System Architecture
• When installed
>> Delivering Value PegaRULES
Process
Commander
creates the
PegaRULES
database in the
database of choice
and is installed as
a servlet in the
application/web
server.
• The Application
server/PegaRUL
ES engine
communicates
with the
PegaRULES
database/RDBM
S through JDBC.
• The RDBMS and
application server
need not be on
the same machine
10
Application Server
Application Server is software that is dedicated to the serving (running) of other applications
• Facilities
• Programming Productivity
• Provides dedicated standard API’s
• Response to Demand
• Provides Scalability, load-balancing,
reconfiguration, deployment
• Integration with existing systems
• Provides standard services
• SOAP
• Message Queue
• DB Access
• Security
11
JAVA
What is JAVA
>> Delivering Value
12
JAVA EE
What is JAVA EE
>> Delivering Value
13
Multi-tired Architecture
14
EJB
What is EJB
>> Delivering Value
EJB stands for Enterprise JAVA Bean.
It is a server-side component that encapsulates the business logic of an application
15
JAVA Servelets
16
JAVA Server Pages
What are>>
JavaDelivering
Server Pages Value
17
JAVA Database Connectivity
18
Section 2 – PRPC Features and Benefits
19
PRPC Features & Benefits
20
PRPC Rule Types
Declarative rules:
Compute values or Decision tree rules:
>> Delivering Value
enforce constraints
as other properties Streamline
change interfacing to
execute “If then”
types of logic
Process rules:
Manage the PRPC provides a variety of
receiving, rule types to help
assignment, organizations get started Integration rules;
routing, and quickly and maximize
performance Streamline
tracking or work interfacing
between systems
and applications
Transformation
rules:
Automate data
mapping and
parsing between
disparate systems
21
Common enterprise rulebase
Distributed rule execution
22
Deployment styles for Enterprise scalability
This can be accessed
directly from HTML,
Java Server pages, and
User interface
integration User-
interface
integration
BATCH
Processing
23
Organizational and Class Hierarchy, Rules
Resolutions
3
Section 1 – Organizational Hierarchy
Organization
At the top level,
>> Delivering Value
this identifies the
Division
company entity.
At the second level, this
identifies the highest-level
entities of the company. For
example, you might use the
structure of your company's
Unit senior management team as a
At the next level, this identifies the starting place for
division-level entities.
most specific level at which
organization information is recorded
(for example , a cost center).
4
Basic Organizational Hierarchy Structure
Process Commander applications group organizational data hierarchically, using nested levels of
organization, division, and unit. The following structure shows a sample organizational hierarchy
>> Delivering Value
with one organization, three divisions, and four units.
Example: The above Hierarchy shows an extended organizational hierarchy. The North America and Asia divisions each have
Marketing and Sales units; each Marketing unit, in turn, has Marketing Communications and Product Management work groups.
All work group managers are afforded additional privileges by belonging to the Managers access group.
5
Section 2 – Operator ID, Access Group & Work Group
What is Operator ID
>> Delivering Value
& An Operator ID defines a user's name, password, access group, organizational setting,
calendar, and other values.
& The operator ID references an access group that contains the RuleSet versions, roles, portal
layouts, and applications available to users.
& The operator ID defines what a user is capable of doing, not what the user is allowed to do.
Three instances are created automatically when Process Commander is installed:
& PegaRULES Administrator — Default administrator created at installation
& Batch Processing — Default batch requestor created at installation
& External User — Default user for external applications
& An Operator ID data instance is sometimes called a profile. To view your Operator ID
instance, click the link containing your name in the Developer portal navigation panel.
& Operator ID instances are normally stored in the PegaRULES database as rows of the
pr_operators table.
6
Work Groups & Access Groups
When users log in with an operator ID, their organizational affiliations grant them appropriate
>> Delivering Value
RuleSet access. The ID also identifies two additional affiliations: work group and access group.
7
Access Groups
& Access groups make a set of RuleSet
What do Access Groups do versions available to set of users.
Multiple users are associated with one
>> Delivering Value
access group.
Access roles & Access group represents a person’s job
and function and allowed actions in a
privileges
Process Commander environment.
Portal & It controls the applications, work portal
layout
tabs, and groups of work (or work pools)
you can access
& Access groups are assigned to users
through their operator ID records, the
division and organization to which they
RuleSet list belong, and through requestor
Access
Groups definitions.
determine Available
work pools & Process Commander Applications use a
the user’s
combination of operator ID, access
group, and access role to control what
each user can see and do within the
system.
Work object & When users log in with an operator ID,
types that can their access group determines their
be entered
application portal layout and the
RuleSets they can access.
8
Standard Access Groups
1. PegaRULES:Administrators
2. PegaRULES:Agents
3. PegaRULES:PortalUsers
4. PegaRULES:ProcessArchitects
5. PegaRULES:SystemArchitects
6. PegaRULES:Unauthenticated
7. PegaRULES:WorkManagers
8. PegaRULES:WorkUsers
9
Section 3 – Rules, RuleSets and RuleSet Versions
10
RuleSet Name
Grouping Moving
Access Control Interrelated Managing the
Rules Rules Applications
11
A RuleSet Version
12
Understanding Rule Resolution
& Rule resolution is Process Commander's search and lookup algorithm that uses inheritance to
search through parent classes in a defined sequence for a rule .
& It is the process by which Process Commander decides which rule to execute.
For example:
if a property rule named CreditLimit is needed at runtime in the context of a class named Delta-
CustomerCard, the system may search for a property rule with this name in several classes:
& Delta-CustomerCard
& Delta
& Work-Object
& Work
& @baseclass (the topmost class)
The search ends when a rule is found. Settings in the class rule (Rule-obj-class rule type)
define how two mechanisms directed inheritance and pattern inheritance are employed during
this search.
& Rule resolution applies to most, but not all, classes derived from the Rule- base class.
& No inheritance or rule resolution applies to external classes, even if the class name contains a dash
character.
& It uses a combination of the rule type, purpose, Ruleset name/version, class structure, and security
model to determine the rule.
13
Rule Resolution as input values
>> uses
Rule resolution Delivering Value
as input values:
14
Section Four – Class Hierarchy concepts and
terms
Class
Class Group
Inheritance
15
Class
& Class defines capabilities (rules such as properties, activities, HTML forms, and so on) available to other,
subordinate classes, or to instances of the class.
& >> Delivering Value
Classes are organized into a hierarchy. The ultimate base class named @baseclass is at the top (or left). The
base classes Data-, Rule-, Work- and others are immediate child classes of the ultimate base class. Other
classes are derived from the base classes.
& Custom classes that are immediate child classes of the ultimate base class are known as top-level classes.
These are different from base classes.
& Classes can be either Abstract or Concrete.
& Abstract class cannot have any instances, appears at the top level of the class hierarchy
& An abstract class is a rule (an instance of the Rule-Obj-Class class) created to support the definition of rules,
including other classes
& A dash or minus character "-" as the last character in the class name indicates an abstract class
& A concrete class, near or at the bottom of a class hierarchy can have instances stored in the database
& Concrete classes corresponding to instances saved in the PegaRULES database are known as internal
classes
& Concrete classes corresponding to a table in an external relational database (rather than the PegaRULES
database) are known as external classes.
& Concrete classes derived from the Rule- base class are known as rule types and those derived from the Work-
base class are known as work types.
& Concrete classes don’t end with a – (dash). For example: the Rule- class and Work-Cover- class are abstract
classes, while Work-Cover-General is a concrete class
16
Class Group
& A class group instance causes the system to store the instances
corresponding to two or more concrete classes that share a
common key format in a single database table.
17
Benefits of a Class Group
18
Inheritance
& Inheritance is a primary benefit of object oriented technology. Process Commander offers multiple
types of inheritance that can maximize reuse of your rules while allowing localized overriding as
appropriate. >> Delivering Value
& Inheritance allows a rule created for one class (possibly an abstract class) to be applied to other
classes that inherit from it
& RuleSet version inheritance works using three-level version numbers. For example, users who
have a version 02-15-06 in their RuleSet list inherit rules in version 02-15-05, when no rule
instance exists in 02-15-06.
& RuleSet inheritance arises through the order of RuleSet names in the user's RuleSet list. Rule
instances in a RuleSet at the top of the RuleSet list supersede others of the same name.
& Organizational inheritance is implemented through a four-level assembly of privileges and
RuleSet versions through the access group, organization unit, division, and organization.
& Class inheritance searches for rules from a concrete, lower class, up the class hierarchy to
find available rules.
& Class inheritance uses a sophisticated algorithm to find the parent classes of a specific class. Two
types of class inheritance — directed inheritance and pattern inheritance — are available
& Directed inheritance allows to name a class choosing a name that's not related to its parent's
name.
& Pattern inheritance the name of the parent class is a prefix portion of the name of the class,
based on the dash (-) characters
19
Section Five – Smart BPM Concepts
Work
Flow
Work Assignments
Object Common
Terms
Work Work
Parties Basket
20
Work Group and Work Baskets
& A work group can identify a user & A workbasket is a named queue of open
who is a supervisor, and a set of assignments that are not associated with an
workers and workbaskets that operator.
report to that supervisor.
& A workbasket can be linked to an organization
& For the supervisor of a work group, unit, a work group, and a calendar.
the My Group area of the Process
Work space provides quick access to & Based on access settings, all the operators in a
the worklists and workbaskets unit can access work assignments in the
associated with the group. workbasket.Assignments are transferred
automatically to users based on their current
& Work group information is not work loads and skills.
related to the three-level
organizational hierarchy consisting & During system installation, one workbasket
of unit, division, and organization. named default@pega.com is created, as a last
Work group membership does not resort for routing of assignments.
affect a user's RuleSet list.
& During execution of a flow, a router task can
choose which workbasket is most appropriate to
receive a newly created assignment.
21
Assignments
An application
Users who are can automatically
qualified can remove route assignments Managers can transfer
an assignment from in a workbasket to assignments from a
the workbasket to users based on workbasket to user work
process the work schedules, lists.
assignment. due dates, skills,
workloads, and
other factors.
22
Work List
>>
What Delivering
is Work List Value
23
Work Objects
A work object is the primary unit of work completion in an application, and the
primary collection of data that a flow operates on.
As an application is used, work objects are created, updated, and eventually closed
(resolved). Every work object has a unique ID (property pyID), an urgency value, and a
status (property pyStatusWork).
In some organizations, a work object is known by the older term work item.
24
Work Party
25
Work Flow
26
Standard Flow Shapes
Connector
Assignment
Router
Standard Flow Shapes are
Utility
Decision
Flow End
27
Rule Types in PRPC
3
Section 1 : Property
What is a Property
4
Standard Properties
Standard Properties
>> Delivering Value
5
Property Parameters
Property
name
6
Property Modes - String Based Modes
>> based
String Delivering
modes Value
& Single Value: Select Single Value to create a property that can contain
a single text string value. Text, numbers, dates, Boolean values and
amounts are stored in Single Value mode properties.
& The standard Single Value property named Work-.pyID holds the
system- assigned unique identifier for a work object.
& Value List: Select Value List to create a property that can contain an
ordered list of single values. There is no maximum number of entries.
& Value Group: Select Value Group to create a property that can contain
a un- ordered group of single values.
& If you create a Value Group property named Birthday, you can use it
in your future configuration to hold a group of values.
7
Page based Modes
8
Java based Modes
Java based modes
9
Associating Values with properties
10
Model
>> Delivering
What is Model Value
11
Property Qualifier Rules
12
Validate Rules
& A validate rule can test input values against edits defined in edit
validate rules for properties.
& To execute a validate rule during initial entry of a work object, create
a validate rule named onAdd.
& These rules test property values, typically immediately after they are
submitted on a browser form.
& Activities use the Obj-Validate method to call a validate rule to test a
set of property values.
13
The following rules can reference Validate rules
>> Delivering Value
14
Standard Validate Rules
15
Rule-Edit-Validate
& These can call on standard or custom Java to further test the input value.
& Use the Edit Validate form to define a Java routine that tests the validity of
an input value in an activity that processes the user input.
& The activity calls the Property-Validate method, which applies the test
defined in an Edit Validate rule.
& Use the Property-Validate method in an activity to execute the edit validate
rule when a value is submitted through a user input form.
16
Section 2 : Harness
What is Harness
>> Delivering Value
& Harness rules define the appearance and processing of work object
forms used in application to create work objects and process
assignments.
& It is a user interface. Harness form is a HTML form support users
to create, update and resolve work objects.
& Harness form is also called as work object form. Harness form
consists of Harness Sections.
& Every harness consists of one or more containers. Headers belong to
containers. A container may have a horizontal header, tabbed header
or no header.
& Each container can contain one or more sections, which in turn can
contain layouts, repeating layouts, and other sections.
17
Standard Harness Forms
There are five types Review: The Review forms display the
of standard harness work objects in display-only mode,
forms with no fields changeable
18
Harness Section
19
HTML Rules
>>HTML Rules
Delivering Value
20
HTML Property
Examples:
& Date: Presents a localizable date in Date format, Calendar icon,
and several formats depending on parameters.
& PromptSelect: On input, presents a drop-down selection list of
values determined by the Table Edits tab of a property value. The
Table Edits tab can specify a Local List, Remote List, Field
Values, Prompt List, or Class Key Value.
& Text: Presents an HTML text box with a specified display size and
a maximum input length, both in characters.
21
Section 3 : Activities
Activities are the primary processing rules in Process Commander.
& Activities automate processing.
>> Delivering Value
& Activity rules contain a sequence of steps. Each step can contain:
& A method and its parameters — one of the seventy built-in basic
operations that perform computations, update properties and other
aspects of the clipboard, or move data between memory and the database.
& Flow-of-control instructions, including calls or branches to other
activities.
& Inline Java — a short snippet of Java code. Often, this code calls a
function (Rule-Utility-Function rule type). Functions are grouped into
libraries (Rule-Utility-Library rule type).
& Each activity has a type that characterizes its purpose and affects which
other rules can call it.
& When a requestor session runs an activity rule for the first time, the
system converts information from the activity rule into Java, compiles the
Java, and executes it. Later executions (of the same activity in the same
RuleSet, version, and so on) reuse the compiled Java.
22
Calling Activities
23
Working with Activities
>> Delivering
Use Steps tab to define a numbered list of methodValue
calls, known as steps.
Activities may contain one or dozens of steps. Steps execute in sequence
except as described. Each row contains:
& A row number, optional label, and optional description
& Iteration instructions, for looping within a step
& Precondition — an optional True-False condition to be tested before
the method starts
& A method or instruction
& Parameters used by the method or instruction
& The step page for this method or instruction
& Transitions— optional conditions to be tested after the method
completes
24
Pages & Classes tab, Parameter tab and Security
tabs
& Use Pages & Classes tab to list the pages used in the steps of this
activity.At runtime, the system uses information on the this tab to locate
properties and values on the clipboard. Over time, a user's clipboard
may grow to contain thousands of properties. The Pages & Classes tab
improves performance by limiting the search for a property to a specific
page or pages.
& Use the Parameters tab to identify any variables used as input
parameters to, or results from, the activity.
& Use the Security tab to specify the activity type and optionally to restrict
which users (or other requestors) can execute the activity
25
Section 4 : Flow
What is Flow
>> Delivering Value
26
Types of flows
27
Flow Design Shapes
There are different flow shapes present in Visio, which helps in building up a flow.
Assignment task
Integrator task
Assignment Service task
Notify task
Connectors
Router task
Decision Task
Spin – Off Task
Call or branch to a sub flow Split – Join Shape
Ticket Utility
28
Start Task and Comment Task
29
Assignment Task & Assignment Service Task
& By adding a router, the assignment & Both integrator task and assignment
can be sent to some other user or to service task reference an activity of
a work basket. type connect.
30
Connectors and Decision Tasks
31
Call or branch to a sub flow and Flow end task
32
Fork Task and Integrator Task
& At runtime, the system evaluates & Example: an integrator task can
the conditions on each outgoing connect to a customer database to
connector, starting with the retrieve account balances or verify
connector assigned to the highest account numbers and status.
likelihood.
& Integrators tasks use activities (with
& The execution continues along the Connect as the Activity type ) that
first connector that evaluates to call connector rules ( Rule-Connect-
True. rule types ).
33
Notify Task and Router Task
34
Spin- Off Task and Split-Join Shape
& When a work object advancing & It is used to complete multiple subflows
through a flow reaches the Spin- in our flow before executing the current
off shape, Process Commander flow.
starts execution of a different flow, & These flows may be unrelated but execute
using the current or a different parallel. For example a mortgage
work object. application workflow may require that
& Processing in the current flow rule facts about the home buyers be validated
continues in parallel (sub flow), and a title search to be completed. These
without waiting for the other flow two tasks are unrelated and can be
to complete. performed in subflows that proceed
independently and parallel.
35
Split – ForEach and Pools & swim lanes
36
Ticket and Utility
Ticket Utility
>> Delivering Value
37
Screen Flow Rules
38
Section 5 : Decision Rules
39
Decision Tree Rules and Decision Table Rule
40
When Condition Rule
41
Map Value Rules
& A map value rule is a rule that converts one or two input values
into a single result. Where the decision criteria fits a table or
matrix structure.
& In a flow rule, you can reference a map value rule in a decision
task.
& In an activity, you can evaluate a map value rule using the
Property-Map-Value method or Property-Map-Value-Pair
method.
& A map value rule can call another map value rule. This process
is called Cascading
42
Section 6 : Declarative Rule
43
Declarative Processing
44
Forward and Backward Chaining
& Forward chaining provides the & Backwards chaining executes Declare
automatic calculation of the property Expression rules when a value is
by executing the declarative rule, when needed for a property, rather than
any one of the input property value is when inputs change.
changed.
& For example, if the Area property & For example, if the Area property
depends on the Length and Width depends on the Length and Width
property, then forward chaining causes property, then backward chaining
the Area property to be recomputed causes the Area property to be
each time either Length, or Width recomputed each time the Area
value changes. property is required/ referred.
45
Types of Declarative Rules
>>are
Declarative Rules Delivering Value
categorized into
Declare
Expressions
Declare
Trigger
Declare
Constraints Declare Declare
Index OnChange
46
Declare Expressions
47
Declare Constraints & Declare Index
Declare Index
Declare Constraints >> Delivering Value
& Declarative constraints check the value & Declare Index rule are defined for
of a property automatically based defining criteria under which
on its relationship to and changes in Process Commander automatically
other properties and/or static values. maintains index instances for
faster access.
& The system evaluates constraints
automatically each time a property & Indexing can improve performance
identified in a constraints rule is and facilitate reporting.
changed.
& Index instances are sometimes
& This technique is known as forward called alternate keys or secondary
chaining. keys.
48
Declare OnChange Rules & Declare Trigger
Declare OnChange
Rules Declare Trigger
>> Delivering Value
49
Binary File
50
Relation between Work Objects, Covers and Folders
3
Common Terms
Folder
Work Cover
Object Common
Terms
Work Work
Object ID
4
Section 1 - Work Objects
What>>
is Work Object
Delivering Value
Every work object has a unique ID (property pyID), an urgency value, and a
status (property pyStatusWork).
5
Work Object ID
& The standard activity named Work-.GenerateID uses the standard properties pyWorkIDPrefix and pyWorkIDSuffix in
its computation.
& By convention, an ordinary work object ID has a prefix of W-nnnnn and no suffix, so W-9432 identifies such an object.
Conventionally, a cover object ID has the format C-nnnnnn, and a folder object has the format F-nnnnn, where nnnnnn
is a system-assigned decimal number.
& Normally the system assigns a work object ID automatically as it creates a work object, using a prefix set in the model
rule of the work type or work pool.
& The internal class Data-UniqueID supports work object numbering, and ensures that work object IDs are unique
& The property Data-UniqueID.pyPrefix holds the prefix and is the key to instances of this class.
& The integer property Data-UniqueID.pyLastReservedID holds the highest assigned number
& The property Data-UniqueID.pyOrganization, a key part, is not filled in by standard rules.This property value is left
blank so that work object IDs are unique system-wide.
6
Section 2 : Cover and Cover Objects
& The Cover object and Covered objects have a parent-child relationship (one-
many) in which Cover is the parent and Covered are the children.
7
Developer facilities for covers
Internally, a cover is a work object that is an instance of a concrete class derived from
>> Delivering Value
the Work-Cover- abstract class. The system includes harness rules, flow action rules,
and activities that support working with covers. The covered work objects can be of
differing work types. However, the work type of the cover and the work type of the
covered objects must all belong to the same work pool.
• Locking — By default, locking a covered work object also locks the cover work
object. This is desirable because the cover work object may contain totals,
balances, counts, or other derived values that require single-threaded access.
8
Developer facilities for covers ( continued)
• Harness rules — The Work-.NewCovered harness rule supports entry of a new cover
and cover members.
9
Section 3 : Folder Object
In contrast to covers:
& One work object may be associated with multiple folders, but only with one
cover.
& Members of a folder can belong to different work types, which need not
belong all in a single work pool.
& The relationships between folder work objects and their contents may be
many-to-many.
10
Purpose of Folders
What is the
purpose of
Folders
11
Section 4 - Relation Diagram of Folders, Cover & Covered
Objects
>> Delivering
Work Objects process evolving Value
Covers tightly coordinate
information about an processing on several related
individual unit of work work objects
Folders
12
Examples of Work Objects, Covers and Folders
13
>> Delivering Value
Chapter Five
PEGA Reporting Features in PRPC
RULES
Process
Commander October 2008
Presentation
By
AIGSS BPM CoE
This document is the sole property of AIG Inc. All rights reserved.
Reporting Features in PRPC
3
Section 1 – Understanding Reporting Features in PRPC
4
Process Commander
5
Section 2 – Viewing Reports in PRPC
Summary View
6
List View
& List View rules are used to define a custom report or personal
version of a report
& List Views generate HTML that provides an attractive and
interactive display
& In an activity, a list view rule can be executed to provide
searching and sorting, with no display, as an efficient alternative
to the Obj-List method.
& With appropriate configuration on the Organize tab, a list view
rule can support editing of Process Commander data (property
values) in Microsoft Excel
7
List View – Process Overview
) When executing a list view rule, Process Commander uses stream processing to select,
>> Delivering Value
retrieve, and format data for user presentation
) It creates SQL statements and sends the SQL request to the Process Commander
database. The database results appear in a Page List property named pxResults of
class Code-Pega-List, which contains a Page property pxResults(1), pxResults(2), and
so on for each returned row (each object instance). After database results are available,
local sorting, filtering based on when condition rules and formatting operations can be
performed
) Results from different tables (properties from two or more classes that are in separate
class groups) can be merged into a single report. This can be achieved by using the
Join tab or by creating a Database View and concatenating the data from both tables
using a common column.
) The presentation of a list view report reflects the combined result of CSS styles. A style
sheet, referenced in the Reports field under the skin rule is used. We can also refer style
sheets for the reports under the Format Tab for List view rules.
) The list view rule can be tested directly from the run button in the toolbar or can be
executed from an activity and from a URL.
8
Comparing List View and List Rules
>> Delivering
List rule (Rule-Obj-List Value
rule type) can be used rather
than a List View rule for simple retrieval and reporting
that does not involve sorting or calculations
9
List View – Performance and Limitations
10
Summary View
11
Summary View – Processing Overview
12
Summary View – Performance and Limitations
13
Drill Down Charts
14
Section 3 – Generating Reports in PRPC
Select the view from the List view or the Summary View option
Step 1: Select the type of the report, the wizard mode and whether to create a new report or to
modify an existing one.
>> Delivering Value
Data Source
Step 2: This panel lists rule classes, work types, assignment types, or concrete Data- classes that
can be the source of rows for the report.
From the available options, select the ones on which the report needs to be generated.
And click the button, NEXT.
Criteria
Step 3: Define selection criteria as rows of this array. Each row can define a comparison test for
a property in the data source selected in step 2.
Group by
Step 4: Identify one or a few fields that are to become break levels in the summary report.
Fields
Step 5: Using this step, computations can be performed on the report. Computations like Count,
Sum, Average, Min and Max are performed. Thresholds can be defined to include one or
more colored backgrounds in the report.
15
Generating Reports (Continued…)
Drill Down
Select a view type to display when the user drills down on a row in the report. You can drill
down to another report or chart from the selected row. Choose either Detailed View or
Step 6:
>> Delivering Value
Summary View in the Drilldown field:
Detailed View — this view displays detailed information in the called report or chart.
Summary View — this view displays summary information in the called report or chart and
allows you to specify an additional drilldown to another report or chart. When you select this
view, a Configure button appears that allows you to configure the summary view drilldown
display.
Chart
To present the summary view report as a chart, or a chart with tabular data, select the Chart
Step 7: check box. When clicked on the Chart check box, we get different options to select for the type
of chart we need. The charts available are Pie Chart, Column Chart, Area Chart, Line Chart,
Gauge Chart, Bubble Chart
Options
Step 8: Different options, like changing the Title, adding to favorites, export to excel, customize criteria
link, customize view button and open button are available to generate customized reports.
End.
Step 9: Click on Finish button, the wizard displays the report along with the chart that is selected. This
chart can be saved.
16
Deployment
3
Section 1 : Using Product and Product Patches to package
an application
& To move an application rules and utilities as a package and import it to on a separate process
commander system.
>> Delivering Value
& To create a package of rules from more than one Rule Set or to contain selected data instances, use a
product rule or a product patch rule.
& Product rule identifies all the RuleSets, versions, data objects, and other parts of an entire application.
This rule supports the migration and delivery of an application to other Process Commander systems.
& Product Patch rule is used to supplement the product in a previously created Product rule. For example,
you can send enhancement rules and fix rules in a ZIP file.
& At any time after you save product/product patch rule, click Create Zip File button in the Contents tab
to start the assembly of a Zip archive that contains:
& The RuleSets and versions that make up the application
& Selected data instances
& After creating the Zip from any product/product patch rule, It places the Zip archive in the Service
Export directory. Right-click to download the file to your workstation or a network drive
4
Service Export Directory
The ServiceExport directory for a server node is a directory that can hold
files to be imported into Process Commander or that are produced by
Process Commander for export.
• For example, the Export Archive tool and Service Package facilities
create output files in this directory. The Import Archive tool finds
input ZIP files in this directory.
5
Section 2 - Application deployment Process
6
Section 3 : Importing and Exporting Rules
Ways of creating
>> Delivering Value
ZIP archives Import Archive
Tool
Production Skimming a
Migration Wizard RuleSet
7
Ways of Creating ZIP Archives
>>to Delivering
What are the ways Value
create ZIP archives
& To create a ZIP archive containing rules from more than one Rule Set or to
contain selected data instances, use a product rule (Rule-Admin-Product rule
type) or a product patch rule (Rule-Admin-Product-Patch rule type).
& To create a ZIP archive containing only rules from one Rule Set, use the
Export Archive tool. This ZIP archive contains the rules to be extracted. You
can copy all rules in a specific RuleSet and version, all rules and data instances
defined in a product rule or patch rule.
8
Import Archive Tool
& Rules contained in the ZIP file are added to the rules already present in
this system, optionally overwriting some existing rules. Data instances (if
any) in the Zip file are added to the data instances already present,
optionally overwriting some existing ones
9
Product Migration Wizard
The Product Migration wizard enables you to automatically archive, migrate, and import a
product rule (Rule-Admin-Product rule type) or a product patch rule (Rule-Admin-Product-
>> Delivering
Patch rule type) to one or more destination systems. Value
Create the ZIP file Upload the ZIP Log into each
using the Export file into other destination system and
Rule/Data tool, or Process manually import the
the product or Commander’s rules from the ZIP file
product patch rule temporary file using the Import
forms. systems Rules/Data wizard.
10
Skimming a Ruleset
& The Skim facility causes a resetting of the RuleSet version values in the highest version of existing
rules. >> Delivering Value
& Skimming collects the highest version of every rule in the RuleSet and copies them to a new major
or minor version of that RuleSet on the same system, with patch version 01.
& For example, you can skim rules from RuleSet versions 06-01-01 through 06-13-17 to 07-01-01.
& For Major Version RuleSet Skim, the system adds one to the major part of the version, and sets
the minor and patch values both to "01".
& For example, if you want to create a major version 02-01-01 of a RuleSet, skimming takes
the highest version of every unblocked rule in version 01-xx-xx and copies it to a new
rule in major version
& 02. A rule in version 01-02-15 (assuming that is the highest version of that rule) is copied
to version 02-01-01.
& For a Minor Version RuleSet Skim, the system preserves the major version, and sets the minor
and patch version values to the version you specify.
• You can also skim a consecutive range of minor versions to a higher version. For
example, you can skim versions between 01-01-01 and 01-01-03 to version 01-02.
11
Debugging Tools
3
Section 1 : Tracer
& Tracer tool is used to debug flows, activities, services, parse rules, and declarative
rules.
& The Tracer tool provides full debugging facilities, including step-by-step execution,
breakpoints, and watch variables. You can see in summary or detail the processing
that occurs as you or another requestor executes an activity, declarative rule, or flow
rule.
& You can pause and resume processing, view or set the value of watch variables, and
drill down to step-by-step details. You can view trace events for any requestor
connected to your server node, not just your own session
4
Starting the Tracer
Button Function
Choose a requestor session other than your own. Wait a few
Connection
seconds until the Tracer connects.
5
Operations
Button Function
Clear Erase the displayed events.
Pause Pause the session being traced at the next possible moment.
6
Setting the Breakpoints in Tracer
Use the Breakpoint button to access the Breakpoint Configuration form. You can set
break points for specific steps in activities.
To see a list of activities:
>> Delivering Value
1. Select an Applies To class from the list in the Class Name field. Wait until a list
of appears.
2. Select an activity in this class.
3. Complete the Where to Break field. Select the step before which you want
processing to pause. Select at entry or 1 to break when the activity starts. To
break for each step, choose all steps.
4. Click Set Break . The form changes list the added breakpoint.
5. To remove a break, check the Remove box and click Remove .
Thereafter, when you (or the selected requestor connection) starts this activity, the Tracer
window acquires focus.
7
Setting the Watch Variable
8
Steps to set the Watch Variable
1. Click the Watch button () and complete the Watch Variable Form
Watch Variables form.
>> Delivering
2. Click Set Watch to access the detail form. ValueCompleting the field
Field
3. Minimize the Watch Variables form and
the Tracer window.
Page Name Enter the name of the page, or enter param
4. Resume other work. for the parameter page.
5. When the Tracer next detects a change in
Property Enter the property name. Don't type a
the property value, it displays a Property Name period before the name of the property.
Inspector area in the lower left area of the
Or Page Select to watch this page for page
event window. Messages messages.
6. To see the full Property Inspector window,
place your pointer at the line until a yellow
Property Inspector Window
arrow appears. Drag up until the complete
Property Inspector window is visible.
7. Click Continue to resume tracing. (If you Field Description
don't resume processing within an hour
after a break, processing resumes Reference The page and property being watched.
automatically.)
Old Value If you clicked Continue , and the Tracer
8. To end the watch, access the detail form tool finds that the value has changed, it lists
again, check the box under Remove and the previous value here.
click Remove.
Current The current value of the property.
Value
9
Setting the Options
1. Click the Watch button () and complete the Watch Variables form. Field Completing the field
2. Field
3.
4.
Completing the field
>> Delivering Value
Page NameEnter the name of the page, or enter param for the
Page Name Enter the name of the page, or enter
param for the parameter page.
parameter page.Property NameEnter the property name. Don't
Property Enter the property name. Don't type a
type a period before the name of the property.Or Page Name period before the name of the property.
MessagesSelect to watch this page for page messages.2. Click Set
Watch to access the detail form. Or Page Select to watch this page for page
5. 3. Minimize the Watch Variables form and the Tracer window. Messages messages.
6. 4. Resume other work.
7. 5. When the Tracer next detects a change in the property value, it
displays a Property Inspector area in the lower left area of the Field Description
event window.
8. 6. To see the full Property Inspector window, place your pointer at Reference The page and property being watched.
the line until a yellow arrow appears. Drag up until the complete
Property Inspector window is visible. Old Value If you clicked Continue , and the Tracer
9. Field tool finds that the value has changed, it lists
10. Description the previous value here.
11. ReferenceThe page and property being watched.Old ValueIf you Current The current value of the property.
clicked Continue , and the Tracer tool finds that the value has Value
changed, it lists the previous value here.Current ValueThe current
value of the property.
12. 7. Click Continue to resume tracing. (If you don't resume
processing within an hour after a break, processing resumes
automatically.)
13. To end the watch, access the detail form again, check the box
under Remove and click Remove .
14. Setting the Options:
15. Click the Options button () to set or adjust Tracer output options.
16. Click OK when your entries are complete.
10
Section 2 : Clipboard
• Basics
• Page Category
• Usage during Development & Debugging
11
Clipboard Basics
Pages act as buffers or temporary copies of object instances (of that class) that are
copied from, or may later be stored into, the PegaRULES database or another
database.
The contents of a page are an unordered list of unique property names (defined as
Rule-Obj-Property instances within that class) and optionally a value for each
property.
Properties are added to the clipboard by activities as they execute, and by user
input received through <FORM > inputs and Submit buttons. In addition to
property names and values, pages can contain messages.
12
Clipboard Pages
• User pages
• Declared pages
• System-managed pages: requestor page, process page, application
page, Thread page, OperatorID, Organization, OrgDivision,
13
Clipboard usage during development &
debugging
Select Tools > Clipboard or type the keyboard shortcut CTRL + B to open the
Clipboard tool.
• The Clipboard tool displays two panels:
• The left panel displays the page structures, in a hierarchical tree format.
• The right panel displays the value of Single Value, Value List, and Value
Group properties and messages, for one page selected in the left panel.
Click the Help button () at the top right for more details on the display.
You can control whether the Clipboard tool opens in a new window or in the lower
half of the Developer workspace.
1. Select Edit > Preferences.
2. Select or clear the Clipboard box in the Tools group.
3. Click Save .
14
Left and Right panels of Clipboard
15
Section 3 : Rules Inspector
• Basics
• To Turn on rules inspection
• Working while rules inspection is on
• Results
• Interacting with the results
• To Turn off rules inspection
• Notes
16
Rules Inspector Basics
& The top-level harness rule or HTML rule (Rule-Obj-HTML rule type) that
produced any window or form you are viewing.
& Section rules, flow action rules, paragraph rules and HTML rules that the
top-level rule incorporates through the pega:include JSP tag, the HTML-
based rules referenced by these and so on.
& Properties referenced in any of these rules.
& Properties displayed that are computed automatically by Declare Expression
rules.
& Labels and other elements on harness, section, and flow action rules marked
for localization, for which field value rules are defined.
& Identifying these names can be valuable as you update harness, section, flow
action and HTML rules to evolve the user interface of your application.
17
To turn on Rule Inspector
Four menu settings set or remove rules inspection. When these menu items are set,
>> Delivering Value
a check mark appears before the menu item. Select:
1. Run > Rules Inspector > HTML Rules to turn on marking of harness,
section, and flow action rules with an icon. The icon appears above the
visible presentation of the HTML in the rule. This menu selection also
marks HTML rules with an H icon. The keyboard shortcut is
CTRL+ALT+Y.
2. Run > Rules Inspector > Property Rules to turn on the marking of visible
properties. A small red P identifies each property reference. The
keyboard shortcut is CTRL+ALT+X.
3. Run > Rules Inspector > Declarative Rules to turn on the marking of
properties computed by Declare Expression rules. A small red D
identifies such properties. The keyboard shortcut is CTRL+ALT+V.
4. Run > Rules Inspector > Field Value Rules to turn on the marking of
portal, harness, section, and flow action elements that are marked for
localization and supported by field value rules (Rule-Obj-FieldValue rule
types). This option is most useful when testing a localized application.
The keyboard shortcut is CTRL+ALT+w.
18
Working while Rules Inspector is on
Rules Inspector settings affect all forms presented after you turn on the settings.
To see the enhanced display for a form that's already displayed:
19
Results
20
Interacting with results
• Place and hold your mouse pointer over the, H, D, or P to display in ToolTip text,
the rule type and the full name of the rule.
• Click an H, P, or mark to open the referenced section, HTML, fragment, or
property rule.
• Click a D mark to view the dependency network for that property. The network
shows the current values of other properties that contribute to the current property
computation. To understand the computation, you can alter selected input values to
see the effect on the computation. Your changes do not alter the value on the form.
• Click any field value icon ( , , or ) to access the Field Value Manager,
which lets you review, add or update a language-specific field value to the current
language-specific RuleSet.
21
To turn off Rules Inspector and Notes
Using this facility slows your session; enable it only when needed.
To turn off rules inspection, select each Run > Rules Inspector menu item again to
remove the check marks
Some standard rules have Availability set to Final (and so cannot be overridden by your
application). These rules are not marked when rules inspection is enabled.
A few properties and HTML rules marked as "internal-only" are not marked when
rules inspection is enabled
22
>> Delivering Value
Thank You
This document is the sole property of AIG Inc. All rights reserved.
Enhancing PRPC
3
Section 1 – Data Table Editor
4
Edit Data Table Class
5
Editing Instances of a single Data Table
Editing instances using the form … Editing instances using Microsoft Excel …
6
Data Table Wizard usage by Developers
Developers can create additional Data Tables to edit with the Data Table wizard. One can use the wizard to
create an edit form for any class that meets these requirements:
& Derived from the Data- base class
& Contains only properties of mode Single Value
& Does not require user input for properties inherited from any higher classes
& Contains a Single Value property that defines a unique key.
After a data table is defined for the class, developers can maintain instances of the class using either an HTML
form or an Excel spreadsheet.
Note: Do Not attempt to create a Data Table class derived from the Work- base class. Work objects are not designed
to define reference data, though they may contain properties that have values from Data Tables.
The system is initially limited to 200 data tables. This limit can be increased if needed.
7
Creating Data Table Editor, Class & Properties
To create new Data Tables:
1. Select Application > Data Tables to access a list of existing Data Tables in your system.
2. Click Add at the bottom of the form.
3. >> Delivering Value
Complete the form to define the class and properties in the class.
1. Complete the Class Information form to define the properties in the new class.
2. Choose a name for the new class. The class name must not end in a dash character. Class names must be unique
system-wide.
3. Enter a description for the new class.
4. Complete the Class Information form to define the properties in the new class.
5. Choose a name for the new class. The class name must not end in a dash character. Class names must be unique
system-wide.
6. Enter a description for the new class.
7. Identify an existing class as the parent class. Choose a class derived from the Data- base class.
8. Enter a name and description for each column.
9. Select a Type for the Single Value property that will be created for each column.
10. Optionally, you can enter an edit validation rule (Rule-Edit-Validate rule type) for each property, indicate that it
is required (non-blank), and enter an expected display size in characters and a maximum display size is
characters.
11. Select a box to identify the field that identifies a unique key for each row.
12. Click Generate to create the class rule, the associated property rules, and the Data Tables editor.
13. The system creates the class and properties. Click <<Data Tables to return to the editor.
8
Class Information & Properties
Class
Information
9
Section 2 – Correspondence, Flow Actions & SLA’s
Correspondence
>> Delivering
Correspondence is the Process Commander Value
term for outgoing e-mail messages, printed letters, or
facsimile transmissions produced by the system and its users. These are typically associated with
one work object (or a cover or folder) and may consist of text, images, or both. Create
correspondence rules to define, in HTML, templates for the content of outgoing correspondence.
Each correspondence rule contains standard text for one type of correspondence such as e-mail,
letter, or fax. JSP tags or directives allow correspondence to incorporate property values and
calculations. To send correspondence as e-mail messages, your system must contain an Email
Account data instance and connect to a mail server.
Process Commander includes more than 20 sets of standard correspondence rules that
you can use in your application, or copy and modify.
10
Standard Activities and Flow Action Rule & Types
11
Connector Flow and Local Flow Action
12
SLAs
Service level rules define three time intervals, known as goal, deadline, and late
intervals. >> Delivering Value
The goal time is the smallest time interval, the deadline time is a longer interval,
and the late interval defines post-deadline times. Each time interval is in days,
hours, minutes, and seconds.
Service level rules can be associated with a work object or an assignment.
When the time interval defined by the service level is reached without the
assignment being performed (or the work object becoming resolved), escalation
occurs.
Service level rules are referenced in the assignment tasks of flow rules.
The Events tab defines three time intervals, known as the Goal, the Deadline,
and Late intervals. The optional Late values can occur once, or more than once.
When one of these time intervals is reached without the assignment being
performed (or the work object being resolved), the system escalates this object
to the defined next level. For example, sends it to a manager. The
ProcessServiceLevelEvents agent detects these goals and deadlines not met
and performs escalation processing.
When one of the time intervals is reached, a task is automatically sent to the
internal SLA queue for the SLA agent to handle between 1 and 100 for each.
13
Section 3 - Validations
Rule-Edit-Validate
Validate rules Rule-Edit-Validate is used to validate a property value against
>> Delivering Value
Validate rules help users enter valid property values into an certain rules, and add a message to the page if validation fails.
HTML form or to validate data received from another system These can call on standard or custom Java to further test the input
or source. value
A validate rule can test input values against edits defined in Use the Edit Validate form to define a Java routine that tests the
edit validate rules for properties. validity of an input value in an activity that processes the user
The following rules can reference Validate rules: input.
& Flow action rules, to validate user input The activity calls the Property-Validate method, which applies the
& Flow rules, to validate user-entered parameter values test defined in an Edit Validate rule.
& Activities, with the Obj-Validate method Use the Property-Validate method in an activity to execute the edit
& Correspondence rules, to validate user responses to validate rule when a value is submitted through a user input form
prompts Edit Input
To execute a validate rule during initial entry of a work An edit input rule provides a conversion facility.
object, create a validate rule named onAdd. Use edit input rules to convert data entered by a user (or received
These rules test property values, typically immediately after from an external system) from a format that your application
they are submitted on a browser form. doesn't use into another format.
Activities use the Obj-Validate method to call a validate rule Edit input rules perform conversions, not validations.
to test a set of property values. You can reference an edit input rule in the Edit Input Value field
The Standard Validate Rules are: on the Property form.
Work-.OnAdd Edit input rules referenced by a property rule execute automatically
Work-.Validate only during HTTP requests, not for properties set through data
Work-Cover-.OnAdd mapping, Property-Set methods, or other computations.
Work-Cover-.OnAdd Edit input rules use Java code for the conversion.
Process Commander contains a few standard edit input rules like
DateTime-Calendar, GetStandardValue etc
14
Libraries and Functions
Libraries
>> Delivering Value
& A library is a collection of Java functions grouped by a library rule.
& A library can contain one or more function rules.
& Create a library rule to hold custom functions for your application, which can
supplant and extend standard functions.
& Each reference to a function rule identifies the library to which the function rule
belongs
& Your system contains several standard libraries and hundreds of standard functions.
& For example, the standard library rule named DateTime contains several standard
functions for date and time format conversions.
Functions
& Each function rule defines a Java function and makes it callable from activities and
expressions.
& Use a function rule to define a Java function that is accessed through rule resolution.
& You can reference function rules in expressions and directly in Java
15
>> Delivering Value
Thank You
This document is the sole property of AIG Inc. All rights reserved.