Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Registered members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Pega Very Important Interview Questions & Answers
What is circumstance in Pega?
What is circumstance in Pega?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="AllJobsInfo" data-source="post: 61" data-attributes="member: 1"><p><strong>A circumstance</strong> is an optional qualification available for supported rule types. Commonly referred to as a "circumstanced" or "specialized" version, a circumstance is based upon an unqualified rule known as the base rule.</p><p></p><p><strong>Using circumstances</strong> in your application allows you to easily support a variety of use cases. For example, you may want a different data transform to execute depending on a customer's geographic location (i.e. when .StateCode = "MA"). Instead of maintaining the logic for all cases in one large rule, start with a base rule and extend (or specialize) it as needed. At runtime, PRPC automatically selects the correct version to execute as part of its rule resolution process.</p><p></p><p><strong>There are many options available for circumstancing or specializing a base rule including:</strong></p><p></p><p>One single value property</p><p></p><p>Multiple single value properties, also known as multivariate</p><p></p><p>Date property</p><p></p><p>Date range</p><p></p><p><strong>To verify</strong> if an existing rule is either a circumstanced version or is a base rule, open it in the Designer Studio and inspect the form header. The Circumstanced link will appear; click it to see the circumstance values or an indication that the rule is a base version. If the existing rule is neither a base nor a circumstanced version, the link will not be visible.</p><p></p><p><strong>To see all available circumstances</strong> for a given base rule, navigate to the rule in the Application Explorer. Use the expand icon next to the name of the base rule to display each of the circumstanced instances and their values.</p><p></p><p>Example:</p><p>Assume that you have difference pricing levels for your customers. You first define a base pricing rule for all customers. Then you qualify the base rule by creating circumstanced rules for customers at different buying levels. The property .CustomerType is part of the customer order and has values of "Silver" and "Gold". In this example, a customer has purchased a $100 item. Using the property and values, you create circumstance-qualified instances of the base rules as shown here:</p><p></p><p>BasePrice rule — if .CustomerType=(none), then Price =$100</p><p></p><p>BasePrice circumstance 1 — if .CustomerType = “Gold”, then price = $100 - 25%</p><p></p><p>BasePrice circumstance 2 — if .CustomerType =“Silver”, then price = $100 - 10%</p><p></p><p>When the system processes the order, the value of that property dictates which rule is run and thereby determines the discount (if any) the customer receives.</p></blockquote><p></p>
[QUOTE="AllJobsInfo, post: 61, member: 1"] [B]A circumstance[/B] is an optional qualification available for supported rule types. Commonly referred to as a "circumstanced" or "specialized" version, a circumstance is based upon an unqualified rule known as the base rule. [B]Using circumstances[/B] in your application allows you to easily support a variety of use cases. For example, you may want a different data transform to execute depending on a customer's geographic location (i.e. when .StateCode = "MA"). Instead of maintaining the logic for all cases in one large rule, start with a base rule and extend (or specialize) it as needed. At runtime, PRPC automatically selects the correct version to execute as part of its rule resolution process. [B]There are many options available for circumstancing or specializing a base rule including:[/B] One single value property Multiple single value properties, also known as multivariate Date property Date range [B]To verify[/B] if an existing rule is either a circumstanced version or is a base rule, open it in the Designer Studio and inspect the form header. The Circumstanced link will appear; click it to see the circumstance values or an indication that the rule is a base version. If the existing rule is neither a base nor a circumstanced version, the link will not be visible. [B]To see all available circumstances[/B] for a given base rule, navigate to the rule in the Application Explorer. Use the expand icon next to the name of the base rule to display each of the circumstanced instances and their values. Example: Assume that you have difference pricing levels for your customers. You first define a base pricing rule for all customers. Then you qualify the base rule by creating circumstanced rules for customers at different buying levels. The property .CustomerType is part of the customer order and has values of "Silver" and "Gold". In this example, a customer has purchased a $100 item. Using the property and values, you create circumstance-qualified instances of the base rules as shown here: BasePrice rule — if .CustomerType=(none), then Price =$100 BasePrice circumstance 1 — if .CustomerType = “Gold”, then price = $100 - 25% BasePrice circumstance 2 — if .CustomerType =“Silver”, then price = $100 - 10% When the system processes the order, the value of that property dictates which rule is run and thereby determines the discount (if any) the customer receives. [/QUOTE]
Verification
Post reply
Home
Forums
Pega Very Important Interview Questions & Answers
What is circumstance in Pega?
What is circumstance in Pega?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top