Escolar Documentos
Profissional Documentos
Cultura Documentos
Copyright 2010
Pegasystems Inc., Cambridge, MA
All rights reserved.
This document describes products and services of Pegasystems Inc. It may contain trade secrets and
proprietary information. The document and product are protected by copyright and distributed under licenses
restricting their use, copying, distribution, or transmittal in any form without prior written authorization of
Pegasystems Inc.
This document is current as of the date of publication only. Changes in the document may be made from time
to time at the discretion by Pegasystems. This document remains the property of Pegasystems and must be
returned to it upon request. This document does not imply any commitment to offer or deliver the products or
services described.
This document may include references to Pegasystems product features that have not been licensed by your
company. If you have questions about whether a particular capability is included in your installation, please
consult your Pegasystems service consultant.
For Pegasystems trademarks and registered trademarks, all rights reserved. Other brand or product names
are trademarks of their respective holders.
Although Pegasystems Inc. strives for accuracy in its publications, any publication may contain inaccuracies
or typographical errors. This document or Help System could contain technical inaccuracies or typographical
errors. Changes are periodically added to the information herein. Pegasystems Inc. may make improvements
and/or changes in the information described herein at any time.
Contents
Chapter 1: Overview ................................................................................................................... 1-1
Business Process Management .......................................................................................... 1-3
Structure of This Document ................................................................................................ 1-4
Support Knowledgebase ..................................................................................................... 1-5
Prerequisites ......................................................................................................................... 1-6
Chapter 2: Using the Application .............................................................................................. 2-1
Creating a Purchase Order .................................................................................................. 2-2
Adding Items to Your Purchase Order ........................................................................ 2-6
Approving the Purchase Order Request .......................................................................... 2-12
Chapter 3: Improving the Application....................................................................................... 3-1
Changing the Purchase Order Request Process............................................................... 3-4
Defining a New Decision Table Rule.......................................................................... 3-13
Editing the Flow........................................................................................................... 3-19
Chapter 4: Updating the User Interface .................................................................................... 4-1
Building a New Flow Action rule ......................................................................................... 4-2
Building a Section rule ................................................................................................. 4-3
Adding a Section rule to a Flow Action ....................................................................... 4-9
Editing the Flow .................................................................................................................. 4-12
Adding a Data Field ............................................................................................................ 4-15
Inspecting Declarative Rules............................................................................................. 4-21
Using the Declarative Rules Inspector ...................................................................... 4-22
Chapter 5: Reviewing Your Application.................................................................................... 5-1
Developing Applications by Changing Rules .................................................................... 5-1
Technology Under the Covers ............................................................................................ 5-3
Chapter 6: Documenting Your Application .............................................................................. 6-1
Documenting the ESupply Application .............................................................................. 6-2
Appendix A: Application Document for ESupply .................................................................... A-1
Appendix B: The Designer Studio Toolbar and Tab Bar ......................................................... B-1
Toolbar Buttons and Functions .......................................................................................... B-1
Tab Bar Button and Functions ............................................................................................ B-4
Chapter 1:
Overview
Welcome to the Developer Fast Start. This book introduces PegaRULES
Process Commander and provides hands-on instructions for modifying an
application built on PegaRULES Process Commander. It also introduces terms
and skills for application developers. (For brevity, the product is hereafter called
Process Commander.)
The hands-on tasks involve working with a small application called ESupply. The
application allows employees of ECorp to submit purchase order requests using
their Web browser and it automates the process of entering, routing, and
approving purchase orders.
The ESupply application is intentionally incomplete and simplified. Your
assignment is to make changes and enhancements to it. The tasks presented in
this book show you how to extend the application by adding and modifying rules
to meet the needs of ECorp. By following these exercises, you will learn to:
Create rules that enhance the application user interface and behavior
Produce a Microsoft Word document that describes the application and lists
its files, functions, and features.
1-3
Process Commander is the only BPM solution that automates both the business
rules and the business processes that drive work to completion.
Additionally, Process Commander employs a sophisticated common object
model to deliver the power of process and practice integration. This integration is
achieved without the expense and resources associated with maintaining
separate business process and rules databases, user interfaces, test
environments, and production environments.
Tip: Print Appendix B and have it available as you go through this book to
help you learn about the toolbar and tab bar buttons.
Support Knowledgebase
The Pega Developer Network (PDN), located at http://pdn.pega.com, is the
primary technical resource area for the PegaRULES Process Commander
community. The PDN contains a broad range of technical articles including
troubleshooting and how-to information as well as a comprehensive and
searchable knowledgebase to help speed application development.
1-5
Prerequisites
To follow the steps in the hands-on exercises in this book, you need:
Microsoft Internet Explorer (IE) version 6.0 SP1 or version 7 or version 8 with
current Microsoft security patches, on the workstation. All pop-up blockers
(such as those provided by Yahoo! or Google toolbars) must be disabled.
Appendix C also describes Internet Explorer and Microsoft Visio settings
appropriate for using Process Commander.
Chapter 2:
Using the Application
This chapter shows you how to use the application to experience it from the
worker and manager points of view by:
In Chapters 3 and 4, you assume the role of a designer and you change the
business process, appearance, and functions supported by the application.
Note:
The URL is usually obtained from your organizations system
administrator. It is typically in the format:
http://<hostname>:<port>/prweb/PRServlet, where <hostname> is the
system on which Process Commander is installed and <port> is the
assigned port. The URL is case sensitive.
2-3
Note:
You can exit from the ESupply application at any time by clicking the Log
Off link at the upper right of the portal. Log off before closing the browser
window.
Do not use the Internet Explorer Back button when using Process
Commander. Instead, navigate using the tabs and buttons within the
portal layout.
3. Select Purchase Order from the New selection box (Figure 2-4).
2-5
5. Click the Create button at the bottom of the form. This action transmits your
input to the Process Commander server and creates a work object
according to the purchase order process defined in this application. The
system assigns a sequential identifier called the work object ID to the work
object. In the work object form displayed in the portal, this ID is visible in
the top bar of the form (circled in Figure 2-6). The work object form displays
for you to enter input. In this application, the work object IDs begin with the
prefix P- to identify purchase orders.
(close) icon in the upper right corner of the work object form to
close it. The worklist refreshes and an assignment row for this work object
appears on your worklist. Because additional steps are needed before your
tasks with the work object can be completed, a row for this assignment for
appears in your worklist. Figure 2-7 shows a worklist containing one
selected assignment row for the purchase order.
Note: Use the Tab key to advance from field to field. Do not use the
Enter key, as pressing Enter submits the form.
2-7
enter its quantity. If you want, you can add additional rows and more items.
Figure 2-8 shows an example.
Note: If you make a mistake and want to delete an items row, click the
garbage can icon (
4. Click Submit to move to the next step in the purchase order process (if
necessary, use the right-hand scroll bar to bring the Submit button into
view).
5. After clicking Submit, the Confirm Order section appears in the form (note
the Confirm Order label circled in Figure 2-9).
2-9
That first assignment shape (green rectangle) labeled Enter Data Information
corresponds to the form where a user must select some items and the quantities
before the work object can continue through the process. When you clicked the
Submit button, the work object moved to the next assignment shape, the one
labeled Confirm Order. The arrow shape indicates the current step of the flow.
The P-1 work object is at the Confirm Order assignment.
Note: Use the Tab key to advance from field to field. Do not use the
Enter key, as that submits the form.
2-11
The Confirmation section appears (Figure 2-12). The Status in the form says
Pending-Approval, and the line in the Confirmation section shows that the work
object has gone to a manager for approval. An assignment for the approval
request is placed on the managers worklist.
2-13
3. Find the purchase order that you entered most recently as the WorkUser.
Hold the mouse pointer over its row to see Smart Info details for that
purchase order (Figure 2-16).
2-15
Note: In this flow, after a manager Approves (or Rejects) the purchase
order request, the work object becomes resolved with a status of
Resolved-Completed (or Resolved-Rejected).
Other gadgets in the Manager portal allow managers or supervisors to review
staff members worklists, transfer work between staff members, and review realtime reports about progress, volume, backlogs, and trends.
Close the form by clicking the
log out of the portal.
Chapter 3:
Improving the Application
In this chapter, by working as a developer, you will extend the purchase order
process to require a second approval on some purchase orders. To make the
application more closely match ECorps business practices, you will modify the
process flow to require a Vice Presidents (VP) approval for those purchase order
requests that meet all of the criteria for any row of the following table (Figure
3-1). At least one row must match the criteria for the purchase order to go to the
VP for approval.
Dept Name
Bill Customer
Order Total
IT
>$1,000
HR
>$500
Finance
No
Finance
Yes
>$200
Legal
Yes
>$500
Legal
No
>$200
IT
No
>$2,000
And
Then none of the rows contain criteria that are all met. In this case, no VP
approval is required.
3-3
When you complete the changes to the application to implement this policy, the
revised process diagram will look like Figure 3-2, with the added shapes shown
within the dashed red lines.
3-5
Order class which contains rules that belong to various rule type categories
such as Process, Decision, and User Interface (Figure 3-5).
it contains.
c.
d. Click the PurchaseOrder link to open the flow rule. (In the Application
Explorer, a green arrow icon (
flow rule. A blue dot icon ( ) preceding a name identifies a single rule.)
3. Click Save As
3-7
Note: When the Visio Flow Editor opens, it may display a security
warning (Figure 3-10). If it does, select Always trust macros from this
publisher and then click Enable Macros. If the Enable Macros button
remains disabled, your Visio security settings are set too high. In that
case, close the dialog box. Update Visio as described in Appendix C and
try again.
3-9
Note: The Visio tool contains a Flow Properties panel where you can
choose which stencil to use to depict the flow. Each stencil has shapes
that correspond to that stencil in terms of color, borders, etc. The default
is the FlowStandard stencil. If you choose a different stencil in the dropdown list, the flow diagram in the Flow Editor refreshes to reflect that
stencils shapes.
The Visio tool contains a Visio Shapes panel that displays the 18 Process
Flow shapes that Process Commander uses for the selected stencil (Figure
3-12). Each shape has a descriptive ToolTip. (If the names under the icons
do not display, right click on the Shapes heading and select Icons and
Names from the context menu).
Figure 3-12. Process Flow Shapes and the Shapes Context Menu
Note: While using Visio, you can click the Undo button (
3-11
) on the toolbar
to reverse the most recent action. Do not attempt to log off while Visio is
active.
7. Add a decision shape to the process flow below the existing
ManagerReview assignment shape as follows:
a. Click and drag a decision shape
flow diagram.
b. Position the decision shape below the Manager Approve Order
assignment shape (Figure 3-13).
The Name field is arbitrary and may contain spaces. Accept the default
value (which Process Commander copies from the Rule field) by doing
nothing, or enter other brief text to identify this task.
) next to the
VPApproveOrder Rule field to create a new decision table rule with that
name. A New Rule Instance window appears (Figure 3-15).
3-13
12. Click Create. The Decision Table rule form appears (Figure 3-16).
Bill Customer
Order Total
IT
>$1,000
HR
>$500
Finance
No
Finance
Yes
>$200
Legal
Yes
>$500
Legal
No
>$200
IT
No
>$2,000
3. The decision table in this example has three inputs that are identified by
property rules: DepartmentName, BillCustomer, and OrderTotal. Each
column in the decision table (except the Return column) corresponds to a
property. Use these steps to complete the Table tab:
a. Click the column heading cell (the cell just below the Conditions column
title) to label the column in the matrix. A Property Chooser pop-up
window displays (Figure 3-18).
3-15
Note: The green triangle at the bottom right corner of the Property
input field is a SmartPrompt control. SmartPrompts appear on many
rule and data forms to provide a selection list available for fast entry.
To complete a field that contains this control, press your keyboards
Down Arrow key () to access the list. For the Property field here,
this SmartPrompt control displays a list of available property rules
that you can select.
b. With the cursor in the Property field, press the Down Arrow key () to
use the SmartPrompt control to access a list of the available properties.
Continue pressing the Down Arrow key to scroll down the list until you
see the DepartmentName property. When DepartmentName is
highlighted, press Enter to enter it into the field. (Figure 3-19). You can
also double-click the property name to enter it.
4. The starting table contains a single input conditions column. You need to
add two columns; one for the BillCustomer property and one for the
OrderTotal property.
To add a column to the right of the starting column:
a. Click the cell under Department Name to select that column (Figure
3-20).
3-17
Enter >1000 for the entry under Order Total. You can omit the dollar
sign, commas, and pennies in the amount.
d. In the Actions Return column, select True for the value (Figure 3-23).
There are only two allowed return actions, True and False, which are
defined by the results that you specified earlier on the Results tab.
(Figure
3-24).
the form indicates that the rule was saved, but with a warning.
10. Scroll down to read the warning message at the bottom of the rule form.
Click the Show Conflicts button to check this rule for logic consistency
(Figure 3-26). One logic error appears in the bottom row (indicated by a
warning icon
a combination of input values that cannot be used. The top row is reached
first (IT and order total > 1000) and masks the bottom row (IT and order
total > 2000).
3-19
drop it below the decision shape, so that purchase order requests can be
routed to the Vice President. Position the assignment shape below the
VPApproveOrder decision shape (Figure 3-29).
3-21
Note: The blue triangles that appear at the bottom right corners of the
fields are SmartPrompt controls. In the HarnessPurpose field, press the
Down Arrow key to access the appropriate list. The top items in the lists
are ones specific to the ESupply application.
5. In the StatusWork field, use the SmartPrompt to select Pending-Approval.
Enter text into the Name, Instructions, and ConfirmationNote fields.
Then click Apply to apply these inputs to the assignment shape.
6. Add a router shape to the VPApproval assignment shape so that the
purchase order is routed to the user identified by the Operator ID
VP@ECorp.com (Figure 3-31):
a. Select and drag a router shape
flow diagram.
Note: The blue triangle at the bottom right corner of the Rule field input
box is a SmartPrompt control. Press the Down Arrow key to access the
list. This SmartPrompt displays a list of router rule names from which you
can select.
8. The True and False connectors from the decision shape are currently
dangling or unattached to other shapes. Process Commander uses red
connectors to indicate that they are not attached to a shape. Follow the
steps below to attach the connectors.
a. Attach the True connector to the VPApproval assignment shape to send
the purchase order request to the Vice President for approval when the
decision table calculates a return value of True.
b. Attach the False connector to the UpdateStatus Completed utility shape
.
3-23
When the decision table rule returns a value of False, the Vice Presidents
approval is not required. The following events occur automatically:
Attach the tail (top) ends to the bottom of the VPApproval assignment
shape.
Click Apply.
11. Complete the Connector Properties panel for the connector that leads to
the UpdateStatus Rejected utility shape.
3-25
a. In the Flow Action field, use the SmartPrompt to see the list of available
choices. Double-click on More to expand the list (Figure 3-37).
rule form.
15. Test your process changes using the Run menu. Click the Run icon (
) in
the Quick Launch bar and create a new purchase order request (Figure
3-40). You do not need to log out, but can act as the work user, manager,
and VP.
3-27
a. Create a new purchase order request, using data values similar to those
entered in the example in Chapter 2.
b. Enter line items and quantities that produce a total amount that meets
one of the criteria for requiring VP approval as shown in Figure 3-1. For
example, if the Department is IT, any order over $1000 requires the VPs
review.
c.
d. Click the link displayed at the bottom of the confirmation note that
indicates the purchase order is assigned to the manager (Figure 3-41).
Verify that after the manager approves the purchase order request, the
request is routed to the Vice President for approval.
Of course, more complete testing of every condition in the decision table rule is
required in real-world development situations.
You may log off now or continue with the next chapter. To log off, click the
Logout link in the upper right area of the Designer Studio.
Chapter 4:
Updating the User Interface
Currently, the Vice President sees the same user interface as the manager when
approving or rejecting a purchase order request. However, ECorps business
policy requires the VP to enter an approval code. The business policy also gives
the VP the option to enter a note about the approval.
In this chapter you will enhance the user interface to enable the VP to enter
these details.
4-3
to save the
to see the
2. Right-click on Section and select New from the context menu (Figure 4-4).
4-5
3. Click the Create button to create the new VPApproval section and display
the rule form in the Designer Studio (Figure 4-6). An initial layout appears
on the Layout tab. Click Save
the system.
the text Approval Code in the Value field as shown in Figure 4-7. On the
General tab, select the Required box. This selection will display a required
icon ( ) next to the label in the user interface. Click OK to save these
choices to the section layout.
Figure 4-7. Adding the Approval Code Label on the VPApproval Section
Input Box item and drag it to the Field column cell next to the Approval
Code on the top row as shown in Figure 4-8.
4-7
Make sure that ESupply is selected in the RuleSet field and that 01-0103 is selected in the Version field. Click the Quick Create button to
create the new property rule.
d. Return to the Cell Properties panel, select the General tab, and click the
Required box. This ensures that a value is entered in the work form
before it is submitted. Otherwise, an error message appears and reminds
the user to enter a value. Click OK.
7. In the Layout tab of the Section rule form, click the cell on the second row
of the Label column (under the Approval Code label). Open the Cell
Properties Panel (by clicking
OK.
8. From the Basic panel, drag a Text Area item to the cell in the second row
Field column to the right of the Note label, as shown in Figure 4-11.
4-9
Click OK to save the selections for the text area and close the Cell
Properties panel.
10. Close the Basics panel by clicking the X in its upper right corner, and click
Save (
11. Click the VPApproval tabs close button ( ) to close the VPApproval
sections rule form.
1. Return to the VPApprove flow action rule form by clicking on its tab in the
Designer Studio (Figure 4-14).
4-11
c.
4-13
Click the Apply button in the Connector Properties panel. The connector
in the flow is now labeled VPApprove (Figure 4-20).
d. Click the VP Approval Required link. The VP sees the Take Action box
shown in Figure 4-21.
When the VP clicks the VPApprove button, the approval screen appears.
The VP is now required to enter an approval code and may also enter an
optional note (Figure 4-22).
4-15
to see the
Click the + icon to expand the Property rule type (Figure 4-26). Each blue
dot (
4-17
5. In the Label column, open the Cell Properties panel for the PaymentDate
label cell (click on
two words (Payment Date) as shown in Figure 4-28. Click OK to save the
change to the form.
Select the Allow Text Field Entry check box. This selection
provides a text field in the work object form in which users can
type to enter a date.
4-19
rule form.
12. Click the Preview toolbar button
4-21
) in the
Quick Launch bar and select Rules Inspector > Declarative Rules (Figure
4-36).
Purchase Order. On the work object form, a D link appears next to each
property that is calculated by a declarative rule.
4-23
For example, assume that you select the Laptop item and enter two for the
quantity. Notice that a D appears next to the LineItemTotal property (Figure
4-37). Click the D link to inspect how that property value is calculated.
The arrows show how computations depend on each other where results
from one computation feed into inputs of a later computation.
Process Commander supports complex declarative rules and lets you test and
debug declarative computations interactively.
To disable the Declarative Rules Inspector feature, click
Declarative Rules.
Chapter 5:
Reviewing Your Application
By following Chapters 3 and 4 in this tutorial, you used rule forms and the flow
editor to refine the ESupply application. Process Commander uses sophisticated
industry-standard technologies to implement your changes without requiring you
to directly specify coding-level details. You do not need advanced IT skills to
produce applications that are functional, easy to use, and visually appealing.
A property rule Approval Code that holds an input value entered by the Vice
President
A flow action VPApprove that prompts the VP with two new fields after the
VP approves a purchase order request
A section VPApproval that provides the user interface for the VPApprove flow
action
These new rules supplement the original set of rules in the ESupply RuleSet,
which defined the application before you changed it. As you will see in Chapter 6,
Documenting Your Application, and from the application document in Appendix
A, the ESupply RuleSet contains about 125 rules.
The Application Explorer provides designers and developers with quick access to
rules in the ESupply RuleSet. These rules, in turn, build on hundreds of built-in,
out-of-the-box standard rules that are present in every Process Commander
system and which form the foundation building blocks of applications.
5-3
Rules and other data are stored in a relational database supported by any of
several popular database products from Oracle, Microsoft, or IBM.
Developers can quickly switch from a development task to a testing task and
back as you did by using the Run menu from the Quick Launch bar.
Chapter 6:
Documenting Your Application
Process Commander includes tools that enable you to easily document what you
have built. This chapter describes how to use those tools.
6-3
The Application Document wizard opens. On the first screen, select the
ESupply application and the ApplicationDocument template (Figure 6-2) and
click Next >>. On each subsequent screen of the wizard, select the items
you would like to include in the document and click Next >> to proceed
through the wizard until you reach the Create Document screen.
When your work with Process Commander is complete, click the Logout link at
the upper right corner of the Designer Studio to end the client session.
This is the conclusion of the Developer Fast Start guide. More information on the
ESupply application and appendices describing the Designer Studio toolbar and
tab bar and the typical workstation setup can be found in the following pages.
Appendix A:
Application Document for ESupply
The following pages show the document created by Process Commander for the
ESupply application.
Note: Page breaks and fonts in the generated ESupply document have been
modified for inclusion in this book.
A-3
Copyright 2010
Pegasystems Inc., Cambridge, MA
All rights reserved.
This document describes products and services of Pegasystems Inc. It may contain trade secrets
and proprietary information. The document and product are protected by copyright and distributed
under licenses restricting their use, copying distribution, or transmittal in any form without prior
written authorization of Pegasystems Inc.
This document is current as of the date of publication only. Changes in the document may be
made from time to time at the discretion of Pegasystems. This document remains the property of
Pegasystems and must be returned to it upon request. This document does not imply any
commitment to offer or deliver the products or services described.
This document may include references to Pegasystems product features that have not been
licensed by your company. If you have questions about whether a particular capability is included
in your installation, please consult your Pegasystems service consultant.
For Pegasystems trademarks and registered trademarks, all rights reserved. Other brand or
product names are trademarks of their respective holders.
Although Pegasystems Inc. strives for accuracy in its publications, any publication may contain
inaccuracies or typographical errors. This document or Help System could contain technical
inaccuracies or typographical errors. Changes are periodically added to the information herein.
Pegasystems Inc. may make improvements and/or changes in the information described herein
at any time.
Contents
Overview of ESupply 01.01.01 .................................................................................................... A-6
Description ............................................................................................................................ A-6
Business Objectives ............................................................................................................ A-6
Actors .................................................................................................................................... A-6
Work Types ........................................................................................................................... A-6
RuleSets ................................................................................................................................ A-6
PurchaseOrder............................................................................................................................. A-7
PurchaseOrder - Flow .......................................................................................................... A-7
Other Use Cases (Not Referenced in the Application) .................................................... A-14
Properties Referenced ....................................................................................................... A-15
Other Classes ............................................................................................................................ A-17
Data-Party ........................................................................................................................... A-17
Data-Portal .......................................................................................................................... A-17
ECorp-Data-LineItemDetails .............................................................................................. A-17
ECorp-Data-Order ............................................................................................................... A-17
Reports ....................................................................................................................................... A-19
List Views ............................................................................................................................ A-19
Summary Views .................................................................................................................. A-19
Correspondence ........................................................................................................................ A-20
Acknowledgement Email ................................................................................................... A-20
Integration .................................................................................................................................. A-21
Services............................................................................................................................... A-21
Connectors ......................................................................................................................... A-21
Decisions.................................................................................................................................... A-22
Tables .................................................................................................................................. A-22
Trees .................................................................................................................................... A-22
Map Values.......................................................................................................................... A-22
Whens.................................................................................................................................. A-23
Security ...................................................................................................................................... A-24
SLAs ........................................................................................................................................... A-25
A-5
Activities..................................................................................................................................... A-26
Properties ................................................................................................................................... A-27
Declaratives ............................................................................................................................... A-28
Expressions ........................................................................................................................ A-28
Triggers ............................................................................................................................... A-28
OnChange ........................................................................................................................... A-28
Requirements Matrix ................................................................................................................. A-29
Use Case Matrix ......................................................................................................................... A-30
Initial implementation of a system that will centralize and automate the purchasing function for corporate employees.
Business Objectives
Actors
Actor
Type
Count
Access Method
employee
Operator
Browser
Fulfillment
Operator
Browser
Manager
Operator
Browser
Work Types
Name
Implementation Class
PurchaseOrder ECorp-FW-ESupply-Work-PurchaseOrder
RuleSets
RuleSet
ESupply
Version
Description
Prerequisites
Pega-ProcessCommander:06-01-01
ESupplyInt:01-01-01
Pega-ProcessCommander:06-01-01
ECorp
ECorpInt:01-01-01
ECorpInt
Pega-ProcessCommander:06-01-01
PurchaseOrder
Implementation:
Description:
ECorp-FW-ESupply-Work-PurchaseOrder
Purchase Order
PurchaseOrder - Flow
Flow Diagram
A-7
Primary Path
Start - Start
Implementation:
New
Referenced By:
PurchaseOrder - Flow (Page A-7)
Applies to Class: ECorp-FW-ESupply-Work
Short Description: New form for work objects
RuleSet:
ESupply : 01-01-02
Any
Web Browser
Low
Description
Enter department information
Default - SLA
Referenced By:
Applies to Class:
Short Description:
Long Description:
Usage:
RuleSet:
Enter Item Information - Assignment (Page A-8) in PurchaseOrder - Flow (Page A-7)
Workdefault service level
Default service level
The goal is that each work object will be completed in two days.
The deadline is that each work object must be completed within 5 days.
Pega-ProCom : 06-01-01
Initial Urgency: 0
Assignment is ready for work:
Goal
Deadline
Late
Repeating interval from Deadline
5
0:0:0
::
Yes
No
Perform - Harness
Referenced By:
Enter Item Information - Assignment (Page A-9) in PurchaseOrder - Flow (Page A-7)
Applies to Class: ECorp-FW-ESupply-Work
Short Description: Perform form for work object
Long Description: Perform form for work objects
RuleSet:
ESupply : 01-01-02
ToCurrentOperator - Router
Implementation:
ToCurrentOperator
Parameters:
CheckAvailability = False
EnterItemInformation,100% - Transition
Implementation:
EnterItemInformation
Referenced By:
PurchaseOrder - Flow (Page A-7)
Applies to Class: ECorp-FW-ESupply-Work-PurchaseOrder
Short Description: Enter Item Information
RuleSet:
ESupply : 01-01-02
Any
Web Browser
Medium
Description
Enter the items to purchase
Default - SLA
Referenced By:
Perform - Harness
Referenced By:
A-9
ActionSetTicket - Activity
Referenced By:
Applies to Class:
Short Description:
Long Description:
Usage:
RuleSet:
ConfirmOrder,100% - Transition
Implementation:
ConfirmOrder
Referenced By:
PurchaseOrder - Flow (Page A-7)
Applies to Class: ECorp-FW-ESupply-Work-PurchaseOrder
Short Description: Confirm Order
RuleSet:
ESupply : 01-01-02
Web Browser
Low
Description
Not Yet Defined
ManagerReview - Decision
Implementation:
ManagerReview
Referenced By:
PurchaseOrder - Flow (Page A-7)
Applies to Class: ECorp-FW-ESupply-Work-PurchaseOrder
Short Description: ManagerReview
RuleSet:
ESupply : 01-01-02
if .OrderTotal > 100 then RETURN review
otherwise RETURN noreview
Default - SLA
Referenced By:
Manager Approve Order - Assignment (Page A-8) in PurchaseOrder - Flow (Page A-7)
PerformManager - Harness
Referenced By:
Manager Approve Order - Assignment (Page A-11) in PurchaseOrder - Flow (Page A-7)
Applies to Class: ECorp-FW-ESupply-Work
Short Description: Perform form for work object
Long Description: Perform form for work objects
RuleSet:
ESupply : 01-01-02
ToOrgUnitManager - Router
Implementation:
ToOrgUnitManager
Parameters:
CheckAvailability = False
ManagerApprove,60% - Transition
Implementation:
ManagerApprove
Referenced By:
PurchaseOrder - Flow (Page A-7)
Applies to Class: ECorp-FW-ESupply-Work-PurchaseOrder
Short Description: Approve
RuleSet:
ESupply : 01-01-02
Any
Web Browser
Medium
Description
Manager must approve orders totaling more than $100
VPApproveOrder - Decision
Implementation:
VPApproveOrder
Referenced By:
PurchaseOrder - Flow (Page A-7)
Applies to Class: ECorp-FW-ESupply-Work-PurchaseOrder
Short Description: VPApproveOrder
RuleSet:
ESupply : 01-01-03
Conditions
Actions
Return
if
IT
>1000
True
else if
HR
>500
True
else if
Finance
=False
True
A-11
Conditions
Actions
else if
Finance
=True
>200
True
else if
Legal
=True
>500
True
else if
Legal
=False
>200
True
Otherwise
False
Implementation:
UpdateStatus
Parameters:
StatusWork = Resolved-Completed
PurchaseOrder - Flow (Page A-7)
Referenced By:
Applies to Class: WorkShort Description: Updates the status of a work item
Long Description: Update the status of a work item, and call Resolve if it has been Resolved.
Usage:
The activity gets called from various places including Work-NewAssign, Work-NewAssignBasket etc. It sets
the status and calls another activity 'RecalculateAndSave' to update the urgency, timestamps and to save the
work object.
RuleSet:
Pega-ProcessEngine : 06-01-01
Implementation:
CorrCreateAndSend
Parameters:
SendAllAttachments = False
Broadcast = False
CorrName = Acknowledgement
PartyRole = Originator
PurchaseOrder - Flow (Page A-7)
Referenced By:
Applies to Class: WorkShort Description: CorrCreateAndSend
Long Description: Creates a single correspondence
Usage:
This activity is called by CorrNew activity. It creates the correspondence record and calls the activity
CorrUpdate.
RuleSet:
Pega-ProCom : 06-01-01
Alternate Path 1
VPApproval - Assignment
Implementation:
WorkList
Parameters:
DoNotPerform = False
ConfirmationNote = VP Review is required
StatusWork = Pending-Approval
Instructions = VP Approval Required
HarnessPurpose = PerformManager
Default - SLA
Referenced By:
PerformManager - Harness
Referenced By:
ToVP - Router
Implementation:
ToVP
Parameters:
CheckAvailability = False
VPApprove,75% - Transition
Implementation:
VPApprove
Referenced By:
PurchaseOrder - Flow (Page A-7)
Applies to Class: ECorp-FW-ESupply-Work-PurchaseOrder
Short Description: VPApprove
RuleSet:
ESupply : 01-01-03
Alternate Path 2
Reject,25% - Transition
Implementation:
Reject
Referenced By:
PurchaseOrder - Flow (Page A-7)
Applies to Class: WorkShort Description: Reject
Long Description: This flow action is for rejecting the work object.
Usage:
Used by the StandardEvaluate flow. Approval flows should use the Disapprove flow action, not Reject.
RuleSet:
Pega-EndUserUI : 06-01-10
ActionResolve - Activity
Referenced By:
Applies to Class:
Short Description:
Usage:
RuleSet:
Implementation:
UpdateStatus
Parameters:
StatusWork = Resolved-Rejected
PurchaseOrder - Flow (Page A-7)
Referenced By:
See UpdateStatus (Page A-12)
Alternate Path 3
Reject,40% - Transition
Implementation:
Referenced By:
Reject
PurchaseOrder - Flow (Page A-7)
A-13
ActionResolve - Activity
Referenced By:
Referenced By:
PurchaseOrder - Flow (Page A-7)
Applies to Class: ECorp-FW-ESupply-Work
Short Description: Confirmation form for work objects
RuleSet:
ESupply : 01-01-01
employee
Web Browser
Low
Description
Department information is defaulted into the purchase request form but the employee can overwrite it if not correct.
Manager
Web Browser
Low
Description
The order is rejected by the manager. Manager selects a reject reason. Order is either routed back to employee for update and
resubmission or resolved.
Name
RejectReason Reject
reason
Category
Business
Rule
Status
New
Description
A list of reject reasons is presented to managers and fulfillment operators who
select from the list.
Properties Referenced
Rule Name
Label
Mode
Type
RuleSet
AddShipping
AddShipping
ESupply
Approval Code
ApprovalCode
ESupply
Bill Customer
Bill Customer
ESupply
ContactInformation
Contact Information
Page
ESupply
Department Name
Department Name
ESupply
Department Number
Department Number
ESupply
Order
OrderTest
PageList
Order Date
Order Date
ESupply
OrderTotal
Order Total
ESupply
PaymentDate
PaymentDate
ESupply
py AgeFromDate
Pega-ProCom
py AttachmentCategories pyAttachmentCategories
StringList
Pega-ProCom
py ButtonLabel
Button Label
Pega-WB
py Caption
Caption
Pega-WB
py ConfirmationNote
Confirmation Note
Pega-ProCom
py DuplicateID
Duplicate ID
Pega-ProCom
py ElapsedStatusNew
Pega-ProCom
py ElapsedStatusOpen
Pega-ProCom
Pega-ProCom
py FlowName
Flow Name
Pega-ProCom
py ID
Work ID
Pega-ProCom
py Instructions
Instructions
Pega-ProCom
py Label
Label
Pega-ProCom
py NextEmail ThreadID
pyPropertyName
Pega-ProCom
py Note
Routing/Transfer note
Pega-ProCom
py NotifyQuick Stream
pyNotifyQuickStream
Pega-ProCom
py OrigDivision
Originating Division
Pega-ProCom
py OrigOrg
Originating Organization
Pega-ProCom
py OrigOrgUnit
Originating OrgUnit
Pega-ProCom
py OrigUserDivision
Pega-ProCom
py OrigUserID
Originating User ID
Pega-ProCom
py OrigUserWorkgroup
Pega-ProCom
py OwnerDivision
Owner Division
Pega-ProCom
py OwnerOrg
Owner Organization
Pega-ProCom
py OwnerOrg Unit
Owner OrgUnit
Pega-ProCom
Data-Party
ECorp-Data-Order ESupply
Text
A-15
Rule Name
Label
Mode
Type
RuleSet
py ProblemReason
Problem Reason
Pega-ProCom
py RootCause
Root Cause
Pega-ProCom
py Selected
Selection Flag
Pega-ProCom
py SLAName
SLA name
Pega-ProCom
py StatusCustomerSat
Pega-ProCom
py StatusWork
Work Status
Pega-ProCom
py TemplateInputBox
InputboxTemplate
Pega-ProCom
py Urgency WorkAdjust
Pega-ProCom
py Work IDPrefix
Work ID Prefix
Pega-ProCom
Other Classes
Data-Party
Properties Referenced
Rule Name
Label
Mode
Type
RuleSet
py City
City/Town
py FirstName
First Name
Last Name
py Postal Code
Postal Code
py State
State/County
Data-Portal
Properties Referenced
Rule Name
Label
Mode
Type
RuleSet
ECorp-Data-LineItemDetails
Properties Referenced
Rule Name
ItemName
Label
Mode
Type RuleSet
ECorp-Data-Order
Properties Referenced
Rule Name
Label
Mode
Type
RuleSet
A-17
Rule Name
Label
Mode
Type
ItemName
ItemName
LineItemTotal
Quantity
Quantity
UnitPrice
UnitPrice
py ActionPrompt Action
py RowStatus
RuleSet
ESupply
ESupply
Pega-WB
Pega-UIEngine
Reports
List Views
Applies To
Name
Assign-Worklist
Work ListEmbed
ECorp-Data-LineItem
Details
DataTableClass Editor
Summary Views
None found
Description
RuleSet
ESupply
Added by wizard
ESupply
A-19
Correspondence
Acknowledgement Email
Integration
Services
None found
Connectors
None found
A-21
Decisions
Tables
VPApproveOrder
Actions
Return
if
IT
>1000
True
else if
HR
>500
True
else if
Finance
=False
else if
Finance
=True
>200
True
else if
Legal
=True
>500
True
else if
Legal
=False
>200
True
True
Otherwise
Trees
ManagerReview
Map Values
None found
False
Whens
ReportFilter
A0
ItemPrice
A0
A-23
Security
Access Group
Role Name
ESupply:Administrators
PegaRULES:SysAdm4
ESupply:WorkManager
PegaRULES:WorkMgr4
ESupply:WorkUser
PegaRULES:User4
SLAs
None found
A-25
Activities
Applies To
Name
Description
RuleSet
Version
Assignment classes
getOrderInfo
getWork ItemInfo
ESupply
01-01-02
ECorp-Data-Order
Copy UnitPrice
Copy UnitPrice
ESupply
01-01-02
ESupply - Framework
getItemDetails
getItemDetails
ESupply
01-01-02
Work classes
ToVP
ESupply
01-01-02
A-27
Properties
Applies To
Name
Description
Mode
RuleSet
Version
ECorp-Data-LineItem
Details
ItemName
Item Name
String
ESupply
01-01-02
ECorp-Data-LineItem
Details
Price
Price
String
ESupply
01-01-02
ECorp-Data-Order
ItemName
ItemName
String
ESupply
01-01-02
ECorp-Data-Order
LineItemTotal
LineItemTotal
String
ESupply
01-01-02
ECorp-Data-Order
Quantity
Quantity
String
ESupply
01-01-02
ECorp-Data-Order
UnitPrice
UnitPrice
String
ESupply
01-01-02
ECorp-FW-ESupplyWork
Bill Customer
Bill Customer
String
ESupply
01-01-02
ECorp-FW-ESupplyWork
Department Name
Department Name
String
ESupply
01-01-02
ECorp-FW-ESupplyWork
Department Number
Department Number
String
ESupply
01-01-02
ECorp-FW-ESupplyWork
ItemDetails
Order
PageList
ESupply
01-01-02
ECorp-FW-ESupplyWork
Order
OrderTest
PageList
ESupply
01-01-02
ECorp-FW-ESupplyWork
Order Date
Order Date
String
ESupply
01-01-02
ECorp-FW-ESupplyWork
OrderTotal
Order Total
String
ESupply
01-01-02
ECorp-FW-ESupplyWork-PurchaseOrder
AddShipping
AddShipping
String
ESupply
01-01-02
ECorp-FW-ESupplyWork-PurchaseOrder
Approval Code
Approval Code
String
ESupply
01-01-03
ECorp-FW-ESupplyWork-PurchaseOrder
ContactInformation
Contact Information
Page
ESupply
01-01-02
ECorp-FW-ESupplyWork-PurchaseOrder
PaymentDate
PaymentDate
String
ESupply
01-01-02
Declaratives
Expressions
.LineItemTotal .Order()
.OrderTotal
Triggers
pyTrackSecurityChanges
OnChange
None found
A-29
Requirements Matrix
Requirement
Category
External Status
ID
Description
Linked To
Business
Rule
New
EnterItem
Information ( Use
Case)
RejectReason Business
Rule
New
RejectOrder (Use
Case)
Work type
Use Case
Linked To
Flow Shape
ESupply
PurchaseOrder ApproveOrder
ESupply
PurchaseOrder ConfirmOrder
ESupply
PurchaseOrder ConfirmOrder
ESupply
PurchaseOrder ConfirmOrder
ESupply
PurchaseOrder EnterDeptInformation
ESupply
ESupply
PurchaseOrder PurchaseOrder
ESupply
PurchaseOrder RejectOrder
Appendix B
The Designer Studio Toolbar and Tab
Bar
In the Designer Studio, use the buttons on the toolbar and tab bar to work with
rules and data instances in your Process Commander system.
Button
Function
Availability
Opens the Availability dialog to change the availability of the rule. Select
Yes, No/Draft Mode, Final, Blocked, or Withdrawn to set the availability of
the rule.
Check In
After you check out a rule to work on it (in your private RuleSet), use this
Check In button to copy the modified rule instance over the original one in
the public RuleSet.
Name
Check Out
Button
Function
This button appears if:
Creates a copy of the rule in your private RuleSet and marks the original
rule as checked out (locked). No one else can check out a rule while it is
checked out.
Delete
Delete Check-out
Draft On/Off
Click to toggle draft mode on or off. Elements of this flow rule may
reference activities, flow actions, or other objects not yet defined.
Favorites
Flow Editor
Help
Opens the help system at the help topic for the currently displayed rule or
data form.
Launch
Moves the current rule or data form into a separate, floating browser
window with a copy of its own toolbar. This action lets you compare two
forms, or work with some information or values in the main portal window
and paste them into another portal window.
Navigate Left
This button appears at the end of the toolbar when your workspace is not
wide enough to display all of the available buttons. Click to scroll the
toolbar to the left.
Navigate Right
This button appears at the end of the toolbar when your workspace is not
wide enough to display all of the available buttons. Click to scroll the
toolbar to the right.
New
Creates a new rule or data instance of the same type as the currently open
rule or data instance. To create a new rule or data instance of a different
type, click the arrow to display a menu to select another rule type.
Preview
Recover
Recovers the most recent version of a deleted rule, if the RuleSet and
version combination is unlocked.
Name
Button
Function
Related Rules
Lists rules related to the current rule. Clicking displays a menu that lists
lower-numbered versions of the currently open rule, circumstance and
circumstance-date, editions, and additional menu items.
Restore
Replaces the current checked-in copy of a rule with the last checked-in
copy of that rule.
Return
Rule Data
Shows the XML document that makes up the form displaying this instance.
This is primarily a debugging tool.
Run
Save
Save As
Show Java
Undo
Visio Tools
Zoom In (Visio)
Zoom out from the Visio diagram, to make the diagram smaller.
B-3
Button
Function
Home
Click to return to the Whats Happening display and your home view of the
portal
Currently Open
Click to list all currently open rules or other displays in a drop-down menu.
Select from the menu to bring a specific form or display to the front.
Refresh
Click to refresh the Designer Studio display and display the most current
data from the system. Any inputs you have entered but not sent are lost.
Close
Appendix C
Workstation Setup
This Appendix describes setting up your Process Commander workstation and
includes information about:
Visio settings
C-3
set security for the Local intranet zone to Low, or you can select Custom level
and enable the download settings (Figure C-1 and Figure C-2):
C-5
Do not use the browsers Back button or Back keyboard shortcut. Do not use
the browsers History capabilities to return to an earlier page. The older
pages may contain stale information, and the browsers Back and History
features may interfere with session synchronization.
Visio Settings
Process Commander uses an ActiveX control to control support flows in
Microsoft Visio. Follow the steps in this section to set up Microsoft Visio 2002 or
2003 to work with Process Commander flows.
Visio Versions
Process Commander V6.1 SP1 operates with Visio 2007 if you save files in Visio
2002 format. To configure Visio 2007:
1. Select the Visio 2007 Tools > Options menu item.
2. Select the Save tab.
3. In the Default Format field, select Save Visio files As Visio 2002 document.
4. Click OK.
C-7
Pegasystems Inc. has digitally signed the Visio XP macros with a Code
Signing (level 3) Digital ID Certificate from VeriSign.
2. The Enable Macros button becomes available. Click the Enable Macros
button to start a successful Visio flow editing session. The Security
Warning dialog warning about macros from Pegasystems will not appear
again.
Appendix D
Installing the ESupply Application
and Application Profile
The DeveloperFastStart_V61SP1.zip file contains two zip files:
You use the Import tool of Process Commander to first install the application, and
then install its application profile.
5. When the system has uploaded the zip file, select the following import
options as shown in Figure D-3:
Compile Libraries
) in the
D-3
8. Select Local Zip File for the import mode, and in the File Name field
browse for the ESupply_AP.zip file. Click the Upload file button (Figure
D-4).
Compile Libraries
Appendix E
Contacting Pegasystems
This appendix describes how to contact Pegasystems for:
Education services
Documentation feedback
For more information about our company and products, visit our Web site at
www.pega.com.
Education Services
Pegasystems University of Pega offers a wide range of courses for our
customers. For course descriptions and contact information, go to
http://pega.com/Services/EducationalServices. University of Pega offers both live
classes and e-Learning courses. Courses can be presented at customer sites
also.
Documentation Feedback
Pegasystems strives to product high-quality documentation. If you have
comments or suggestions about this guide or about the sample ESupply
application, send us an email with the following information:
Document name, version number, and date it was updated (located at the
bottom of the copyright page)
Page number
Note: This email address is for providing feedback on this guide and sample
application only.