Configuring Application Settings in The New Application Wizard
Configuring Application Settings in The New Application Wizard
Configuring Application Settings in The New Application Wizard
On the Application settings form of the New Application wizard, you can select a built-on application,
control how many class layers are generated, and define other relevant settings for your new
application. You work with this form as the first step in creating an enterprise application.
1. In the Application name field, enter a unique name that starts with a letter and can contain
alphanumeric characters, ampersands, underscores, or hyphens.
Tip: Keep the name as short as possible to avoid exceeding character limits when you build
on this application in the future.
2. Optional: If the application name is truncated, you can modify it by clicking it.
Concatenated application names that exceed 10 characters are truncated because they are
key parts to other rules, such as classes and rulesets.
3. Optional: In the Description field, enter more detailed information, such as the purpose of
the application.
4. From the Built on application list, select the name of an application. When you build on an
application, you can reuse and extend the functionality that it provides.
Options include:
Framework applications
Implementation applications
Tip: If you do not see a specific application in the list, review the Do not show this
application as a built-on choice in the New Application wizard check box on the
Application form.
5. Select an option from the Application Structure list to indicate how many class layers are
created in your new application.
Options include:
This option provides the most flexibility for future growth and reuse.
6. In the Organization field, enter a unique name that starts with a letter and contains
alphanumeric characters or spaces.
By default, the wizard sets the value in this field to the organization that is defined on your
Operator ID form.
Concatenated organization names that exceed 4 characters are truncated because they are
key parts to other rules, such as classes and rulesets.
1. Click Add business objective to add a row to the list of business objectives that are in your
built-on application.
2. In the text field that is displayed, enter a description of the business objective that is
measurable and outcome-focused.
3. Optional: Click the delete icon to remove a business objective that does not align with the
purpose of your new application.
After your application is created, you can reference your business objectives from specifications.
Case types represent units of work you expect to accomplish in your application. Cases traditionally
have a lifecycle, and through a set of actions, accomplish a meaningful business outcome. It is easy to
add case types while building your application, so just capture enough to get started.
On the Case types form of the New Application wizard, you can add case types or import existing case
types to your new application, based on your built-on application. You work with this form when you
create an enterprise application.
Tip: Use extension points to enhance the functionality in this step of the wizard. For example, you
can automatically add rules and data from built-on applications to each of your newly created or
imported case types.
To add new case types:
Follow these steps when you are extending the PegaRULES or PegaDM application.
2. In the Name column, enter a case-type name that does not exceed 40 characters.
Case-type names must start with a letter and can contain alphanumeric characters,
ampersands, underscores, or hyphens.
3. Optional: In the Description column, enter more detailed information, such as the
purpose of the case type.
For each case type that you define, a case type named pyDefault is created with a set of standard,
supporting rules.
To import existing case types:
Data types represent information that is necessary for a case to accomplish its actions or achieve its
business outcome. This data is often shared across multiple cases and possibly applications, and could
be stored local to this application or in an external system. It is easy to add data types while building
your application, so just capture enough to get started
On the Data types form of the New Application wizard, you can add data types or import existing data
types to your new application, based on your built-on application. You work with this form when you
create an enterprise application.
To add new data types:
Follow these steps when you are extending the PegaRULES or PegaDM application.
2. In the Name column, enter a data-type name that does not exceed 40 characters.
Data-type names must start with a letter and can contain letters, numbers, and hyphens.
3. Optional: In the Description column, enter more detailed information, such as the
purpose of the data type.
4. Select an option from the Reuse Layer list to indicate where the class for the data type is
created.
To import existing data types:
Follow these steps when you are extending a framework application.
1. Review the list of data types in the framework application that will be added to your new
application.
2. Click an application name in the Additional Built-On Applications section to review a list
of data types that will be inherited.
3. Repeat step 2 for each list of data types that you want to inspect.
4. Optional: Clear the check box next to a data type to exclude it from the import process.
For each data type that you select, an existing data class is referenced by your new application.
After your application is created, you can use the Data Explorer to add more data types.
Template is Admin@OrganizationName
Green leaves are known as classes in pega.
Parent Class is HDFC-HDFCBank-Work. >>>>>>>> Loans , Paytm & Sample are subclasses.
Case is a module where we define our lifecycle of module. Like Adding Flows
Class: Actual design is carried out here.
Example: for loan case actual design will be carried in Loan class.
Adding properties, Integration and rest other designs are done here.
A case is work which gives us a business outcome.The outcome of the case is the business
solution provided to the customer.
A class structure is used to organize the rules well mannered which helps for easy maintenance
and helps us for easily reuse of rules.
Case is a business process consists of a series of tasks that need to be completed and it establish
the logical progression of steps using manually, automatically and procedurally. Where as
Classes are created in the system, with names based on the Case names.
Any class which contains process flow pystartcase then it is a case.Every case type can be class,
but every class must not be a case.
1. Work Class group – Like HDFC-HDFCBank-Work <- This is a work glass group
Both types of class inheritance allow rules of ancestor classes to be inherited. However, class
inheritance does not apply to external classes, even if the class name contains a hyphen.
Directed inheritance
Pattern inheritance
Right click on a class and then click on create. The list that appears is rule type.
q. What is rule?
Rule is template under rule types.
Example : when you click on decision then rule appears.
q. What is ruleset?
Container to store rules/records in application.
Ruleset are created automatically in background.
Now here you can enter the properties along with their format :
What is primary key?
The unique data that belongs to just one is called primary key.
Example: while creating Db of voters ; phone number and voter card number can be primary
keys
Or in above case (refer screenshot) the SSIND is primary because its exclusive to each
person.
1. Create a property.
2. Quick create a property.
3. Property Wizard.
A. Create a property
Here default property type is TEXT
TYPES OF
PROPERTIES
Text
TextEncrypted
TimeOfDay
ADVANCED PROPERTY OPTIONS:
CLICK ON Remove additional configuration options : This is difference between quick create and general create.
Click on orange tab : create and close
C. PROPERTY WIZARD
Note : Here like if we select “ Gender” ; its ideal to choose TYPE as “PICKLIST” . Configure that type with “ MALE” &
“Female” option.
Note : You cannot use quick create property for static records.
For static records use only : 1. Create a property
2 Property wizard
Section contains Layouts & Controls . Layouts are combination of row and columns which is configured
according to client’s requirement.
Types of layouts :
About sections
Use sections in conjunction with harnesses to define the appearance of user forms, rule forms, or
composite portals.
Work information and functionality are grouped into sections by context and purpose. Each section
can be included in other sections so that you can reuse them in a variety of contexts.
The Pega 7 Platform contains dozens of standard harnesses and sections. You can copy and tailor
these standard forms to meet your application needs.
Layouts
Layouts organize properties and controls within a section.
Layout cells contain properties, labels, controls, or other sections. There are various types of layouts
that dictate how cells are arrayed. Layouts can be automatically converted into a sections so that
they can be reused in other harnesses, sections, or flow actions.
Controls
Information about a work item is entered or displayed in controls such as text areas, drop-down lists,
check boxes, or calendars. Many controls are configured so that they meet, without further
refinement, most of your process requirements. To add a control, drag and drop it onto a layout cell.
From the toolbar in a section, you can add layouts and controls to your section.
Layout
Basic
Advan
ced
Where referenced
Rules of the following types can reference a section:
Harnesses
Other sections
Paragraph rules, as the contents of a pop-up SmartInfo window.
Go to sections
Click on the sky blue light highlighted icon .. Like here you see in country property at end .
Click on that . You will get below option.
Click on layout and choose a layout. Drag that layout wherever you want to add in previous layout.
This is how tis gets added:
We can also add layout inside layout. This will appear s Layout 1.1
A flow rule that contains no assignments, and so can execute from start to end without
A flow rule that consists only of assignments or decisions and meets other criteria is
A flow that is called by another flow is known as a subflow, the calling flow is called
parent flow.
To make a screen flow, create a new flow rule and select screen flow in the Template field.
3. Can we start an application with a screen flow? If yes, how? If no, why?
A screen flow rule can’t be a starter flow rule. Use the regular flow to create WorkObject.
we can’t start an application with a screen flow because “Create New Object” option is disabled
under process tab.
A screen flow can operate on a temporary work object, this is never saved to Data Base.
In screen flow Flowactions are referenced by assignment shape rather than connectors.
By using subflow shape. Just drag a subflow shape and fill in appropriate values ,depending upon
what we choose among “On Current Work item”, “On Another Work Item” or “On Embedded Page”.
5. When do we say that a work object is resolved? Can a work object be resolved manually?
When the flow reached the end shape, the work object gets resolved.
Manually it can be resolved through UpdateStatus activity and provide the values for “StatusWork”
parameter as Resolved.
By using privileges and when conditions under process tab of the flow instance.
Work object status reflects the current state of a work object based on its position in the flow.
Assignment status records the user’s judgment about an assignment on the worklist.
Flow Shapes
The available shapes are
7) Subflow 8)Flow
end 9)Fork 10)Integrator 11)Notification 12)Router 13)Spin-off
Assignments record a temporary condition of an open work object within an executing flow.
For every Assignment , add at least one flow action .
The assignment normally appears on the work list of the user who executes the flow.
To connect a shape element in the flow with the next shape element. To indicate a possible path for
the flow execution.
A Notify can send an e-mail message to a work party.Connect the notify shape to the bottom edge of
an assignment shape.
Sends an assignment to a user, workbasket, or agent other than the current user.
Associate a Router task with an assignment task. This activity determines which worklist or
workbasket is to contain the assignment.
When a work object advancing through a flow reaches the Spin-Off shape, process commander
starts execution of a different flow, using the current work object or different work object.
Processing in the current flow rule continues in parallel, without waiting for the other flow to
complete.
Split-Join shape is used to multiple subflows of our flow be completed before the current flow
continues execution.
Split-ForEach shape is used to iterate over the pages of a Page List or Page Group property. For
each page, we can conditionally start a flow execution for the work object.
The embedded page must exist before the Split-foreach shape is reached.
The fork shape is used to choose one of a few different paths (connectors) based on tests on the
work object.
At runtime, the system evaluates the conditions on each outgoing connector, starting with the
connector assigned the highest likelihood. The flow execution continues along the first connector
that evaluates to True.
Decision shape is used to reference a map value rule, decision table rule, decision tree rule or a
Boolean expression.
At runtime, the system evaluates the decision rule based on inputs from the flow and the work
object, and chooses one of the outgoing connectors based on the result.
We can start the execution point in the flow at any point in the flow by using Ticket shape.
Ticket creation:
2. Drag a ticket shape to where we want to jump in the flow and Complete the Ticket Properties panel
3. To configure the ticket in activity, Call the SetTicket activity and pass Ticket name
4. Create separate flow action and mention above activity as post activity in flow action.
5. Mention this FLOWACTION as LOCAL ACTION in assignment from where we want to jump.
Utility activity is defined in a class derived from the Work- or Data- base class and activity of type
Utility.
Integrator activity identifies an activity that connects our process commander system to an external
system to send or receive data.
For example integration task can connect to a customer data base to retrieve account balances or
verify account numbers and status.
Both are used to call activity rule (logic) in Flow. But integrator is only used when connector
method is used. For rest all normal method utility shape is used.
A branch to another flow without returning (one or more incoming connectors, no outgoing
connectors)
A call to another flow with return (one or more incoming connectors, one or more outgoing
connectors)
Part of a Split/Join or Split-forEach shape (at least one incoming and one outgoing connector)
A flow rule that is branched to or called by another is sometimes informally called a subflow.
In subflow we can define flow on current work item or another work item.
14. Explain with an example, the difference between a Decision shape and a Fork?
A decision task is a shape on a flow rule that references a rule of one of three types:
1)A map value rule (Rule-Obj-MapValue rule type) 2) A decision tree rule (Rule-Declare-
DecisionTree rule type)
At runtime, the system evaluates the decision rule to determine how a work object progresses
through the flow. The work object progresses along one of the connectors leading from this shape,
depending on the outcome of the decision rule.
On the other hand fork checks the conditions directly on the object and unlike decision shape it
never asks for a Decision tree, table or map value and two or more connectors can emanate from a
fork shape.
15. Consider this scenario: After a work object had reached a particular stage in a flow, I need to
run two flows in parallel to each other. How this can be achieved?
This can be achieved by using Spin-Off shape. Just drag the spin off smart shape and fill in the
appropriate values depending upon what you choose among “On Current Work item”, “On Another
Work Item” or “On Embedded Page”.
So the flow started by this shape will be called a subflow and the original flow as parent flow.
Subprocess Shape :
1. Create data tables . In real time we also import records but in personal edition But here we
will input it manually.
2. Add Properties (Work Class)
3. Section Rule ( 2 section)
4. Flowaction Rule (2 flowaction)
5. Activity Rule.
6. Flow Rule. (2 Flowaction and one activity)
7. Test and debug