You are on page 1of 28

Clipboard Tool

7 2
8 90
Definition, Usage and Navigation
:2
ID
te
ia
oc
ss
A

C3: Protected
About the Author

Created By: Tanay Kumar Bal, 136240


Credential Information: Pega CSSA
Reviewed By: Somasish Setua, 107760
Credential Information: Pega CSA and experienced PRPC expert

2
Version and Date: BPM/PPT/0810/1.0

7
8 90
:2
ID
te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 2


A
Icons Used

Hands on
Questions Tools Exercise

7 2
8 90
Coding Test Your
Reference
:2
Standards Understanding
ID
te
ia

A Welcome
Contacts
oc

Demonstration Break
ss

© 2007, Cognizant Technology Solutions Confidential 3


A
Clipboard Tool: Overview

 Introduction:
 The Process Commander logical layer for storing data between an application and the

database is the clipboard.

2
 Process Commander keeps XML-based structures called pages in memory, and pages

7
contain property-value pairs.

90
 A page is an instance of a class rule, and the page holds the current property values for
8
:2
that instance.
ID
te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 4


A
Clipboard Tool: Objectives

 Objective:
After completing this chapter you will be able to know:

 What are Clipboard pages

2
 Clipboard Structure and Page Scopes

7
90
 Use of Clipboard tool

 Debugging with Clipboard Tool


8
:2
 How to view a clipboard page as an XML document
ID

 Methods to access Clipboard pages


te

 Standard Clipboard pages and their functions :


ia

 pyWorkPage
oc

 pyWorkCover
ss

© 2007, Cognizant Technology Solutions Confidential 5


A
Clipboard Scope and Structure

 The clipboard is collections of Java objects in the JVM.

 The clipboard is managed as a group of pages, which are arranged into sets of
decreasing scope.

2
 Process Commander has three clipboard page scopes.

7
90
 Process Scope - shared globally across all requestors on a system

 Requestor
8
Scope - shared among all the separate Threads within one requestor
:2
connection
ID

 User Scope - single requestor Threads


te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 6


A
Page Scope : Process Scope

 Process Scope : System Pages


 Have the widest scope.
 Created at the startup of the application server, and live until the application
server is shut down.

2
 Contains system-wide state and configuration information at runtime.

7
 Example: – pxSystem, pxProcess.

8 90
:2
ID
te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 7


A
Page Scope : Requestor Scope

 Requestor Scope : Requestor Pages


 Next, narrower scope.
 Exist for the lifetime of the requestor.
 Typically only a single requestor clipboard page, is created for each

7 2
requestor.

90
 Example - pxRequestor.

8
:2
ID
te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 8


A
Page Scope : User Scope

 User Scope : Thread Pages


 Contains information at the thread level.
 Contains user and connection specific state and configuration information to
Process Commander at run time.

2
 Memory for these pages are managed automatically according to Java rules.

7
 Example: - pxThread

8 90
:2
ID
te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 9


A
Page Scope : User Scope

 User Scope : User Pages


 Familiar named pages.
 Is a top-level clipboard page that
an activity creates using any of

2
several methods.

7
90
 If you log out, any user pages not
saved to the PegaRULES
8
database are gone from memory.
:2
 E.g. –
ID

pyWorkPage,newAssignPage
te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 10


A
Clipboard Tool : Basics

 Select Tools > Clipboard or type the


keyboard shortcut CTRL + B to open the
Clipboard tool.

2
 The Clipboard tool displays two panels:

7
 The left panel displays the page

90
structures, in a hierarchical tree format.

8
 The right panel displays the value of
:2
Single Value, Value List, and Value
ID

Group properties and messages, for one


te

page selected in the left panel.


ia

 You can also control whether the Clipboard


oc

tool opens in a new window or in the lower


ss

half of the Developer workspace.


© 2007, Cognizant Technology Solutions Confidential 11
A
Clipboard Tool : Left Panel

 The left panel presents the


entire clipboard as a tree,
growing from the left.
 Click a name or plus sign [ ]

7 2
to expand any node.

90
 Click a minus sign [ ] to
collapse. 8
:2
 If one of the User Pages
ID

holds a work object, that


te

page is initially selected in


ia

this panel
oc
ss

© 2007, Cognizant Technology Solutions Confidential 12


A
Clipboard Tool : Right Panel

 When you select a page in the left


panel, all Value List, Value Group, and
Single Value properties on that page

2
appear in the right panel, sorted by

7
90
property name.

8
 Property messages appear in red text.
:2
ID
te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 13


A
Clipboard Tool : Limitations

 Refresh to present current information


 As you work, the system creates and updates clipboard pages related to your
work.
 These changes are not automatically reflected in the Clipboard tool display.

7 2
 Measuring the size of the clipboard

90
 The Clipboard display shows the contents of the clipboard, but not its size in
bytes.
8
:2
 Large clipboards can affect performance.
ID

 You can use the Performance tool to see the size of your clipboard in bytes.
te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 14


A
Clipboard Tool : Limitations

 What properties do not appear?


 The Clipboard display doesn't include properties with names that start
with pz.
 These standard properties support internal operations.

7 2
 Properties of mode Java Object, Java Object Group, and Java Object List

90
do not appear on the Clipboard tool display.
 Only ‘Named’ pages are displayed in the Clipboard display.
8
:2
 The primary pages of some activities are not named and don't appear
on the Clipboard display.
ID

 To see the contents of unnamed pages, use the Tracer.


te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 15


A
Using the Thread and Action menus

 Use the Thread menu to select which Thread (and


so which clipboard) you are viewing.

 Use the Action menu to test a rule without the need

7 2
to create a test activity that creates the pages and

90
properties expected as starting conditions for the
rule.
8
:2
 Action menu options that update the clipboard are
ID

available only to users who have the hold the


te

clipboardViewerUpdate privilege.
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 16


A
Action Menu

Menu Description
Select to cause the Clipboard tool to display the most
Refresh
current pages, properties, and values.

2
Select to cause the Clipboard tool to access and redisplay

7
only a single aggregate property and its elements.

90
Refresh
Current Page This operation is faster than a complete Refresh operation,
8
but may result in an inconsistent representation of your
:2
clipboard contents.
ID

Choose Find to search through values on one of your


clipboard pages, or on all pages. Click Find to open a new
te

Find panel below the right-hand panel.


ia

You cannot search for blanks, non-printing characters or


oc

null values.
ss

© 2007, Cognizant Technology Solutions Confidential 17


A
Action Menu Contd.

Menu Description
After you choose Create Page, enter the page name and
Create Page
the class of the page into the resulting dialog box.

2
Select the page in the left panel and choose Update Page.

7
Enter one or more Single Value property references and a

90
value for each, or update the values of properties already
Update Page listed.
8
:2
You can't use the Update Page menu item on an
ID

embedded page or a declarative page.


te

To delete a page, select a page in the left panel and


choose Delete Page. Confirm the deletion in the resulting
ia

Delete Page
dialog box.
oc
ss

© 2007, Cognizant Technology Solutions Confidential 18


A
Action Menu Contd.

Menu Description
Select a page in the left panel and click Execute Activity.
The selected page becomes the primary page for the

2
activity.
Execute Activity

7
A dialog displays the class of the selected page. Enter the

90
Activity Name key part. Click Parameters to enter
8
values for parameters.
:2
Select a page and click Save Page to save the page to the
ID

Save Page database.


te

You can't save a declarative page.


ia

To start execution of a flow, select a page (with a class


Start Flow derived from the Work- base class ) and choose Start
oc

Flow.
ss

© 2007, Cognizant Technology Solutions Confidential 19


A
Action Menu Contd.

Menu Description

To review a tabular report showing the approximate size in kilobytes of each

2
clipboard page, the page name and class, the number of accesses (read or

7
update), and date and time of the last access, and passivation history. If the

90
Analyze Clipboard
Collect Details mode is enabled, the display contains stack traces showing how
pages were created or deleted and historical information about pages no
8
:2
longer on the clipboard.
ID

Click to enable, or disable, automatic collection of detailed clipboard size and


te

access information. A check mark next to this menu option indicates that
ia

data collection is active. A pop-up window confirms your menu action.


Collect Details
oc
ss

© 2007, Cognizant Technology Solutions Confidential 20


A
Clipboard page as XML Document

 Pages on your requestor's clipboard have a


natural tree structure that you can view as an
XML document.
 Follow these steps to display an XML

2
document for a clipboard page.

7
 Open the Clipboard tool.

90
 In the left panel, click to select the desired
page.
8
:2
 Right-click on the page name. A menu with an
ID

option Show XML appears.


 Select Show XML . The Process Commander
te

server sends an XML document corresponding


ia

to the page to your Internet Explorer session.


oc
ss

© 2007, Cognizant Technology Solutions Confidential 21


A
pyWorkPage and pyCover Page

 pyWorkPage
 By convention in standard flow processing activities, when a single
(non-cover) work object is opened onto the clipboard, the page is
named pyWorkPage.

2
 Standard properties of Work- class get populated here.

7
90
 Many OOB default activities use this page as reference.
 DO NOT name a page with this name.
8
:2
 This page opens up by default as you open up the Clipboard tool.
ID

 pyCoverPage
te

 By convention, a cover work object occupies a clipboard page named


pyCoverPage; the covered work object is on a page named pyWorkPage.
ia

 . Many standard activities depend on these naming conventions.


oc
ss

© 2007, Cognizant Technology Solutions Confidential 22


A
Clipboard Tool

Time for Questions !

7 2
8 90
:2
ID
te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 23


A
Test Your Understanding

1. How many types of Page Scope are there?

2. Under which scope does “User Pages” fall in?

3. What is the scope of page “pxT/=hread”?

2
4. Where do you open the Clipboard tool from?

7
90
5. Do you need a special privilege to open up Clipboard tool?

6. How do you switch between threads using the Clipboard tool?


8
:2
7. Will you be able to execute a flow using the Clipboard tool?
ID

8. How do you check the properties in a parameter page using the Clipboard tool?
te

9. Where do you find the size of the Clipboard?


ia

10. Can you update an embedded page using a Clipboard tool?


oc
ss

© 2007, Cognizant Technology Solutions Confidential 24


A
Hands-on Exercise

 Create a clipboard page.


 Update a clipboard page.
 Execute an Activity.

7 2
8 90
:2
ID
te
ia
oc
ss

© 2007, Cognizant Technology Solutions Confidential 25


A
Clipboard Tool : Summary

 Clipboard tool is one of the most important debugging tool.

 Always take care of removing clipboard pages when you think its not needed any
more.

2
 You can easily monitor the same while you are developing an application.

7
90
 Count the number of user pages in the Clipboard.

8
 Execute a specific component that you have built.
:2
 Go back to the Clipboard tool.
ID

 Again count the number of pages. It should be atleast equal if not less than what you had
te

counted in step 1.
ia

 Analyze the code and identify areas where you think the memory leak is.
oc
ss

© 2007, Cognizant Technology Solutions Confidential 26


A
Clipboard Tool : Source

 http://pdn.pega.com

7 2
8 90
:2
ID
te
ia

Disclaimer: Parts of the content of this course is based on the materials available from the Web sites and books
oc

listed above. The materials that can be accessed from linked sites are not maintained by Cognizant Academy and
we are not responsible for the contents thereof. All trademarks, service marks, and trade names in this course are
the marks of the respective owner(s).
ss

© 2007, Cognizant Technology Solutions Confidential 27


A
You have successfully completed

7 2
Clipboard Tool
8 90
Definition, Usage and Navigation
:2
ID
te
ia
oc
ss
A

You might also like