Here are a few difference between category questions which covers a few important topics in pega.
1. What is the difference between Page -Validate and Property-Validate methods?
The page-validate method is used to validate all the properties present on a page. If a page has embedded pages, this method works recursively to validate all the properties. This method consumes a lot of system resources and takes more time. If you want to validate specific properties use Obj-Validate method with a Rule-Obj-Validate rule.
A property-validate method is used to impose restrictions on property value. Use Edit validate rule along with Property-Validate method to impose restrictions. You can validate multiple properties using Property-Validate method.
2. What is the difference between Edit validate and Edit Input rules?
Edit Validate: Use edit validate rule to validate the property value using java code. Edit validate rules can be used property-validate, Rule-Obj-Validate and Property rules.
Edit Input: Edit input rules converts user entered data into the required format. For example is the user enters date MM/DD/YYYY format, edit input rule coverts this date into DD-MM-YYYY (required format). Again we need to write java code for this transformation.
3. What is the difference between StepStatusGood and StepStatusFail rules? StepStatusGood is a when the condition defined in @baseclass, this when rule checks whether the value of the pxMethodStatus property is “Good”.
StepStatusFail is a when the condition defined in @baseclass, this when rule checks whether the value of the pxMethodStatus property is “Fail”.
4. Difference between activity and utility
Activity is an instance of the Rule-Obj-Activity rule type. An activity is the fundamental sequential processing unit of the Process Commander system. The shape in a Visio flow diagram references an activity that updates a work object but does not require user interaction and input. Your system includes standard activities for utility tasks, and you can create additional ones.
Each utility task references an activity with an Activity Type of Utility. From utility shape we can call activity but vise versa not possible.
5. Difference between obj-open and obj-open-by-handled
Obj-Open: we will get multiple records from a table based on the criteria from the specified class. Or Opens an instance of a given class.
OBJ-open-handle: here we have had to pass the pzInskey as an instance handle, this method will open only one record at the time. Or Open object by the handle to the pzInsKey value.
The handle of an instance is a unique key, in an internal format, assembled by the system that identifies an instance in the PegaRULES database.
6. Difference between Declare Pages and Regular Pages
Declare pages are created through declarative rules, the Declare keyword must be specified while creating a declare page, Declare pages are read-only pages, These pages can’t delete, update directly.
User pages are created through page new method in an activity, these pages can be updated, deleted directly, these pages automatically deleted once logout from the system.
7. Difference between Edit input and Edit validate
Edit input rules are instances of the Rule-Edit-Input class. They are part of the Property category.
An Edit Input rule provides a conversion facility.
Use Edit Input rules to convert data entered by a user (or received from an external system) from a format that our application doesn’t use into another format.
Edit input rules perform conversions, not validations. This rule type does not cause any response to a userabout the validity of the input.
Edit input rules use Java code for the conversion.
We can reference an edit input rule in the Edit Input Value field on the Property form.
Edit validate rules are instances of the Rule-Edit-Validate class. They are part of theProperty category.
Use the Edit Validate form to define a Java routine that tests the validity of an input value in an activity that processes user input.
Properties rule (of mode Single Value, Value List or Value Group) may reference an edit validate rule on the Advanced tab.
Use the Property-Validate method in an activity to execute the edit validate rule when a value is submitted through a user input form.
8. Difference between Page and Pagelist Property
Page property refers to a particular class and is used to access the property of that class.
Page List Property also refers to a particular class, but it’s a collection of individual pages of the same class which can be accessed through numeric indexes.
9. Difference between Call and Branch in Activity
The Call instruction calls another specified activity and executes it. When that activity completes, control returns to the calling activity.
Use the Branch instruction to find another specified activity and branch to it without a return. When the system executes a Branch step, control transfers to another activity found through rule resolution. Execution of the original activity pauses. When the branched activity ends, processing of the current activity also ends. No steps after the Branch step are executed.
10. Difference between Parameters and Local variables in Activity
Values stored in parameter values can be shared between two activities but the scope of local variables is confined to the activity in which they are declared.
Parameters can be referenced as Param.parametername.
Local variables are referenced as Local.variablename.
11. Difference between Forward Chaining and Backward Chaining
Forward Chaining provides the automatic calculation of the property by executing the declarative rule when any one of the input property value is changed. For example, if the area property depends on the length and width property, then Forward Chaining causes the area property to be recalculated every time either length or width values changes.
Backward chaining provides automatic calculation of the property by executing the declarative rule, when the value is needed for the property, rather than when input change.For example, if the area property depends on length and width property, the backward chaining causes the area property to be recalculated each time the area property is required.
Almost all the declarative rules implement only forward chaining, except the Rule-Declare-Expression.In rule-Declare-Expression, we have a choice to decide either we should go to Forwarding chaining or Backward Chaining.
12. Difference between Connector flow action and Local flow action
A local flow action permits users at run time to update, but not complete, an assignment. Local flow actions always are optional. Users may perform none, one, or multiple local flow actions, or repeat a local flow action multiple times.
At run time, users choose a connector flow action, complete the assignment, and advances the work object along the connector to the next task.
13. Difference between Constrains and Validation Rules
Constraints are declarative rules that are triggered automatically when a property value changes.
Validation rules must be told when to run When a form is submitted or Prior to running a Flow Action.
14. Difference between Decision Table and Decision Tree
The logic Implemented in Decision Table is if, else if condition.
In Decision Table, if first condition is true, it will not check the remaining conditions/if first condition is false , then only it will check next condition.
The logic implemented in Decision Tree is if, if condition’s.
In a Decision Tree, if first condition is true or false, it will check all its condition’s and it will return results.
15. What Is The Difference Between Listview And Summaryview
A summary view rule defines a two-level report display, presenting summary counts, totals or averages to be displayed initially, and allowing users to click a row to drill down to supporting detail for that row.
Summary view rules support interactive charts, trend reports, and the use of AJAX for pop-up Smart Info windows. A summary view rule is an instance of the Rule-Obj-SummaryView rule type. This rule type is part of the Reports category.
A list view rule, an instance of the Rule-Obj-ListView rule type, defines a report. Users can personalize list view reports easily and interact with them users can use the Report wizard to define list view reports and link them to our portal.
16. What Is The Difference Between Access Group and Access roles
Access groups make a set of Ruleset versions available to requestors. We use an access role name to convey permissions (capabilities) to a user or a group of users. Access roles can be referenced in requestor instances, Operator ID instances, in access group instances, in activities, and in queries.
HAPPY LEARNING !!!