Automating Business Policies Flashcards

Declarative calculation and automated decision logic.

1
Q

What is declarative processing?

A

Computational relationship among property values
Declared expression eg: Line item cost = Quantity X Unit Price
Declarative processing updates values automatically as inputs change.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the benefits of Declarative rules?

A

Declarative rules provide a way to determine property values automatically, the system generates the programming behind the scenes. Declarative rules model relationships between properties.
VALUE: FASTER DEVELOPMENT
EASIER MAINTENANCE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many declarative rule types are there?

A

6 declarative rule types

1) Constraints *
2) Declare Expressions *
3) Declare on change
4) Declare Trigger
5) Declare Index
6) Data Pages *
* these are the important ones

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are constraints?

A

Constraints are how you enforce relationship between properties.
Eg: Do not allow loans longer than 3 years for vehicles that are older than 5 years.
Constraints can provide a declarative form of property validation every time the property’s value is “touched”, rather than the explicit validation provided by the property definition or validation rules. The system evaluates constraints automatically each time a property identified in a constraint is changed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define the “declare on change” declarative rule?

A

Declare on change performs an activity automatically when the value of a property that we specify to be monitored, changes. For example, we can use a Declare OnChange rule to increment a counter each time a work item is updated. Declare OnChange can also force all processing on a case to be suspended This may be needed when a case suddenly violates some business policy or federal guidelines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are Declare Expressions?

A

Declare Expressions — define automatic computations of property values based on expressions. This expression may consist of property references, decision rule results, or other declare expressions.
+Create -> Decision -> Declarative expressions
Declare Expressions contain a target property and an expression. Any change to input values in the expression causes PRPC to automatically run the expression in the background and update the target property.
Whenever quantity or the unit price input values change, the total line item cost is calculated automatically by the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following provides a declarative form of property validation

A

Constraints

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Of the six declarative rule types, four establish a dependency on a specific property or properties. Which two do not establish a dependency?

A

Declare Trigger

Data Page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When creating a declare expression, you must set the computation type on the _______.

A

Expressions tab of the Declare Expressions rule form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a WHEN rule?

A

It is a True-False condition based on comparing one or more properties with any other value or with other properties. KEEP THIS SIMPLE.
We are using the When rule when we know a condition exists, and we are checking to see if it exists.
+create -> decision -> WHEN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does conditional processing do?

A

Conditional processing helps to process or skip a step, process or skip a stage or take an alternate path in a flow based on certain conditions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

“When rules” can be used for _____

A

Skip a stage
Process or skip a step in a stage.
Conditionally display UI elements.
THEY CANNOT Add a Decision shape automatically. (quiz question)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

If the conditions are not as simple as True or false, what type of decision rules do you use?

A

Decsision Tables and Decision Trees

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are decision tables?

A

Decision table is formatted as a table of conditions and results. Use this when you are evaluating same properties for different results.
eg: The height and weight of a person determines different dress recommendations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do decision tables work?

A

A decision table consists of a table of conditions and results. We define a set of conditions and the results to return when the conditions are true. Each set of conditions contains a corresponding result.
When pega evaluates a decision table, it starts with the top row and evaluates each condition in the row. If all of the conditions are true, pega returns the result for that row. If not, it advances to the next row, and evaluates the conditions in that row. And if none of our combinations returns a result, pega returns the “otherwise result” at the bottom of the table. This ensure that the decision always returns a result.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a decision tree?

A

Value of 1 property will determine the value of other properties. COMPLEX NESTED LOGIC.
Decision trees are organized like a tree, starting from common conditions and extending outward to more-specific conditions and their results. It evaluates a series of conditions, and return the result that corresponds to the set of conditions that are true.

17
Q

How do decision trees work?

A

A decision tree consists of a series of branches that contain more- and more-specific conditions, ultimately leading to a return value.

18
Q

In a flow, we can call a decision from ________

A

A connector and a decision shape.

19
Q

When using a ____________ in a flow, the connector corresponds to the ___________

A

Decision shape, decision result.