Professional Documents
Culture Documents
What Is Rule Availability in Pega (Posted On 26 June 2017)
What Is Rule Availability in Pega (Posted On 26 June 2017)
Notice: The called constructor method for WP_Widget in collapsCatWidget is deprecated since version 4.3.0! Use
__construct()
Introduction In this post, we will see how we can handle delivery status notification
messages. Recap on the use cases. I recommend you to visit the posts in the following…
Read more
Introduction
In this post we will see more in details about the rule availability.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 1/46
6/28/2019 What is rule availability in Pega
Friend 3: I won’t come for the party. I will not allow my friends too !!
Friend 4: I am ready to come for the party, but I got a family function blocking that day
So sad. I got positive response from only two people. I cancelled the party and started
writing a new post for you guys. ‘Rule availability’
I find there are many similarities between my friends availability and rule
availability.
Rule 3: I will not run for you, I will not allow rules in my lower version to run. (Withdrawn)
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 2/46
6/28/2019 What is rule availability in Pega
Rule 5: I will run for you. You cannot update me (can be updated in same open version)
Rule availability helps in managing rules. They can determine, if the rule is eligible
to run or not. They can also determine the availability of rule in lower versions.
In the rule form, you can configure the rule availability.
Scenario: there may be some scenario, where don’t want a particular rule to run in the
application. You can use the availability feature in the rule form to make the rule not
available for rule resolution.
For example – when you create a new work item, there are many rules involved to
complete the task like flows, activities, when etc. Some rules in the framework can be
overridden in the Implementation layer.
1. Available
2. Not Available
3. Withdrawn
4. Blocked
5. Final
We will explore all the possible by rule availability scenarios with examples.
You can test using any rule. In this tutorial I am going to guide you through activity rules.
1. ParentAvailable
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 3/46
6/28/2019 What is rule availability in Pega
2. ChildAvailable
Parent activity – Use ‘Call’ keyword and call child activity from parent activity.
Child activity – For testing purpose, use a property-set to set pyLabel – “Child rule is
available”
Create a new section, and include some fields. Have a button control. In the
button, On click event add an action set to call the parent activity.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 4/46
6/28/2019 What is rule availability in Pega
You can use Live UI and check the property involved in holding the availability value in
rule form. – ‘pyRuleAvailable’.
You can see the property ‘pyRuleAvailable’ in the rule class contains the availability value.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 5/46
6/28/2019 What is rule availability in Pega
Here I have configured both the activities, parent & child activities ‘Available’.
Step 2: Start the tracer & click on the check availability button.
b) Not Available
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 6/46
6/28/2019 What is rule availability in Pega
Using this option, you can make a rule not available in particular version.
For example – Say you have a rule in 2 versions : 01-01-01 & 01-01-02. Default rule
resolution always picks the highest version. In our case 01-01-02.
Now, here if you want your rule in 01-01-01 to run, then you can make the rule availability
in 01-01-02 to ‘No’
Note: You always use this in development environment. There is no use in moving a
rule to higher environment with rule availablity set to ‘No’. You can just delete it right
😀
So instead of deleting the rule in 01-01-02, you can make the rule availability to ‘No’.
The rule resolution invalidates the rule with availability set to ‘Not Available’, so it runs the
rule in 01-01-01.
Step 1: Save As the child activity in 01-01-02 and set pyLabel to ‘Availability No checking’.
Step 2: Click on the button. As of now keep it available and use tracer to check the value.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 7/46
6/28/2019 What is rule availability in Pega
You can see ChildAvailable in MyKnowPega 01-01-02 gets picked and pyLabel is
‘Availability No checking’
Step 4: Lets check the same in user portal again. trace it.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 8/46
6/28/2019 What is rule availability in Pega
c) Withdrawn
Selection this option makes the rule in the current version and previous versions in
the same ruleset, withdrawn from the rule resolution. It means rule resolution,
invalidates the withdrawn rule and its other lower versions in the same ruleset.
For example – You have your rule in MyKnowPega 01-01-01 version and updated the rule
in MyKnowPega 01-01-02 version. When you withdraw the rule in 01-01-02 version, then
the rule resolution never pick the rule in both 01-01-02 & underlying versions – 01-01-01.
You override an pega OOTB rule in your application ruleset. You started
implementing your own requirement. In later release, Pega provides the same
feature in their OOTB activity, So you no longer required the overridden activity in
your application ruleset.
You cannot delete the rule, since the rule is packed and moved to higher environment.
All you can do is save as the rule in higher application ruleset and withdraw the rule. You
can move the withdrawn rule to higher environment. So it invalidates rule in lower
versions too 🙂
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 9/46
6/28/2019 What is rule availability in Pega
Step 1: Create a new copy of the ChildAvailable rule in Application Integration ruleset.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 10/46
6/28/2019 What is rule availability in Pega
Step 3: Now let’s withdraw the rule from MyKnowPega 01-01-02 version.
What are the di erences between ‘Not Available’ and ‘Withdrawn’ rule?
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 11/46
6/28/2019 What is rule availability in Pega
‘Not Available’ invalidates the rule only in the current version, where as the
‘Withdrawn’ invalidates the rule in the current version and lower versions in the
same ruleset.
Mostly we use ‘Not Available’ only in development environment and don’t
promote those to higher environments, where as the ‘Withdrawn’ rules can be
moved to higher environment 🙂
d) Blocked
Selecting this option will not invalidate the blocked rule for rule resolution. Still
the blocked rule is right candidate and if the rule gets picked by rule resolution,
then the process returns not found.
Say for example, Amazon needs to stop their online electronics sales for a
particular country. It can be resumed in later point of time. In this case you can
block the respective rules. The rules just throw the error to end user.
In development environment, If you didn’t complete the entire development, you
can block the corresponding rule till then.
Step 1: Save As the child activity and make the availability to ‘Blocked’.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 12/46
6/28/2019 What is rule availability in Pega
You can see the exception thrown. Since we are testing it using button call, it never stops
flow processing(kind of local action). So let’s test by using the activity in flow action post
processing activity.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 13/46
6/28/2019 What is rule availability in Pega
e) Final
On Selecting this option, you are making a rule as final rule. You cannot override a
final rule in another ruleset.
When you try save as the rule, you will get an error.
Note: You can save as the Final rule in the same ruleset in higher versions 🙂
For example: You can check underlying sections in any rule form header. Pega makes the
sections, rules final, because they don’t want us to update those in rules in our
application rulesets.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 14/46
6/28/2019 What is rule availability in Pega
Section – RuleFormHeader
Step 1: Open the child activity and set the availability to ‘Final’.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 15/46
6/28/2019 What is rule availability in Pega
You are able to make a copy only in the same ruleset higher versions 😊
Share this:
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 16/46
6/28/2019 What is rule availability in Pega
Share
Premkumar G
Withdrawn
Raghav Reply
Premkumar G Reply
Bramha Reply
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 17/46
6/28/2019 What is rule availability in Pega
Premkumar G Reply
Bhagiradha Reply
Premkumar G Reply
swapna Reply
Very good explanation. Can u please give more explanations with real time scenarios. And
one more request pl can u explain all the topics by creating an example application.
Premkumar G Reply
Thanks for your comments, Swapna. Once I complete some important topics, I
will connect all dots by creating a sample application.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 18/46
6/28/2019 What is rule availability in Pega
Thejaswi Reply
Premkumar G Reply
Suresh Reply
Premkumar G Reply
Premkumar G Reply
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 19/46
6/28/2019 What is rule availability in Pega
Suresh Reply
Premkumar G Reply
Navakanth Reply
Premkumar G Reply
Ravi Reply
Premkumar G Reply
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 20/46
6/28/2019 What is rule availability in Pega
Manju Reply
Thank u so much….
Premkumar G Reply
Ashwini Reply
Good work Prem… 🙂 The explanation given is simple and easy to understand. Keep
doing this work… Very helpful for learning guys like me 🙂
Premkumar G Reply
Ajay Reply
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 21/46
6/28/2019 What is rule availability in Pega
Can you please explain Cover ,Folder and also their locking and other dependency
features on Cover ,Folder and Work Object.
It will be great help.
Thanks
Premkumar G Reply
Yeah sure Ajay. You will get that on my case management post 🙂
Veera Reply
Premkumar G Reply
syamson Reply
Sruthi Reply
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 22/46
6/28/2019 What is rule availability in Pega
Premkumar G Reply
Pradeep Reply
Premkumar G Reply
Veera Reply
Prem, It would be great if you can provide some main OOTB activities and its purpose.
Thank you.
Premkumar G Reply
Yeah sure Veera. I will try to make a post on commonly used OOTB activities.
Meanwhile you can check the main OOTB activities in the below path
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 23/46
6/28/2019 What is rule availability in Pega
Designer studio -> Process and rules -> Processes -> API s
Udhay Reply
Premkumar G Reply
Shweta Reply
Premkumar G Reply
Chethan Reply
Premkumar G Reply
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 24/46
6/28/2019 What is rule availability in Pega
Premkumar G Reply
Rupesh Reply
Hi Prem,
Good Explaination.
can you please post case management concepts and report definition asap.
Thanks
Premkumar G Reply
Hi Rupesh,
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 25/46
6/28/2019 What is rule availability in Pega
soumya Reply
Hi prem
I need some information regarding rule delegation ,pls explain me .
Premkumar G Reply
Hi soumya,
Vasanth Reply
Hi Prem,
Can you please clarify one thing – blocking a rule means is it block for specific ruleset or
all ruleset?
Premkumar G Reply
Hi Vasanth,
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 26/46
6/28/2019 What is rule availability in Pega
Chandra Reply
Thanks Prem.. your post cleared many of my doubts about rule resolution. That’s a great
work.
Premkumar G Reply
Sathish Reply
Premkumar G Reply
Sathish Reply
Premkumar G Reply
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 27/46
6/28/2019 What is rule availability in Pega
Premkumar G Reply
Vasanth Reply
ramachandra Reply
Hii Prem,
Could you make a post on Rule Resolution…
Premkumar G Reply
Hi Ramachandra,
I’ve noted down about Rule resolution. I will try to post about it soon. 🙂
Bhanu Reply
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 28/46
6/28/2019 What is rule availability in Pega
Excellent portal to go through Pega in simple words with superb examples. Keep up the
good work Prem. Will be looking for more and more posts.😃
Premkumar G Reply
PMK Reply
Thank you very much really I am enjoying to learn with your explanation Keep going
Premkumar G Reply
Charan Reply
Nice Explanation Prem. Your posts are very useful. Thanks for the posts. Can you please
post an article on Page context in activities ?
Thanks inadvance.
Premkumar G Reply
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 29/46
6/28/2019 What is rule availability in Pega
Rajesh Reply
Premkumar G Reply
Kumar Reply
Ur posts r very easy to understand. Please try to cover all the topics.
i have rule with version 05-05-10 if i blocked this rule( and this rule also present in the
prerequest ) .
Thanks in Advance
Vikas Reply
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 30/46
6/28/2019 What is rule availability in Pega
Superb work prem!!. This post help me a lot in understanding rule availability concept .
Premkumar G Reply
Premkumar G Reply
pradeep Reply
Hi Prem ,
if a rule blocked in lower version say 01-01-01 and the same rule in higher version say 01-
01-02 is available with in the same rule set , will this available rule will be picked at
execution time rule resolution or it will through an error ?
and what if rule is available in di erent rule set ?
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 31/46
6/28/2019 What is rule availability in Pega
rajasekhar Reply
Premkumar G Reply
rajasekhar Reply
Archana Reply
Excellent Explanation with best Examples, I never see such explanation before, I am Pega
beginner can able to understand now.
Thanks for the Posts.
Premkumar G Reply
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 32/46
6/28/2019 What is rule availability in Pega
Premkumar G Reply
Thanks in Advance 🙂
Premkumar G Reply
Hi Manish,
This is very simple. It is based on ruleset assembly.
If Ruleset A comes over Ruleset B, then at runtime It will throw blocking error.
If ruleset B comes over ruleset A, then at runtime it runs without error.
Prasad Reply
Premkumar G Reply
Siva Reply
Premkumar G Reply
Hi Siva,
Thank you. 🙂
I’ll post about it soon. Stay tuned. 🙂
Ajay Reply
Hi Prem,
I am new to Pega and looking for opportunity in Pega. I referred may material on youtube.
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 34/46
6/28/2019 What is rule availability in Pega
they are not as useful as you content. These are really helping me as well as people like
me to understand Pega.
Thanks
Premkumar G Reply
Hi Ajay,
Thank you so much for your appreciation. I’m so much glad that my posts
helped you a lot.
You are most welcome. 🙂
Paramaguru Reply
HI Prem,
This is really helpful for the beginner , awesome explanation . I appreciate and thanks for
the write ups.
Thanks
Param.
Premkumar G Reply
Hi Paramaguru,
Regards,
Premkumar G
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 35/46
6/28/2019 What is rule availability in Pega
Vidyasagar Reply
Premkumar G Reply
Nikhil Reply
Premkumar G Reply
sagar Reply
Premkumar G Reply
Thank you for your appreciation and you are most welcome, Sagar. 🙂
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 36/46
6/28/2019 What is rule availability in Pega
SreeniVasulu Reply
Thank you so much bro, The way you are explaining is really awesome
SreeniVasulu Reply
Hi Prem,
Thanks
jyothi Reply
Debasish Reply
Moumita Reply
Hi Prem ,
This post is quite enlightening as we always confuse between Blocked and Withdrawn
rule.
I have a scenario where I have two when rules : Parent A and Child B, both when rules
were in same ruleset in a branch. Now due to business requirement I have to move Child B
when rule to Production ruleset. When I am trying to run the when rule A , it is throwing
error in tracer “Unauthenticated or rule not found” . So i have to change the name of child
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 37/46
6/28/2019 What is rule availability in Pega
when rule from B to C and then run it. Could you please explain this scenario why it
happened?
Rishika Reply
Great work !
Helped me to get a deeper insight into PEGA..in simple language!!!.
Thanks and keep posting !!
Bhargavesh Reply
Description you gave with friends was too good. Keep up the good work. Superb
explanation
Bhargavesh Reply
Description you gave with friends was too good. Keep up the good work.
Hi Prem,
You are doing great work, there is no other free blog on Pega with such detailed info.
I would like to request a separate post on the debugging tools of pega if possible.
It would be a great help.
Regards,
Amit
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 38/46
6/28/2019 What is rule availability in Pega
Hrudai Reply
sir !! when can i get the bulding blocks of pega !! like rules, classes !!!
i cannot figure out what is a classs and rules and layers like frame work !! can u please
explain this ! i have an test within two days ! please 🙁
Thanks Premkumar !
Durai Reply
Madhav Reply
Hi Prem,
priyanka Reply
Sandeep Reply
HI Prem,
Sai Reply
Nice Explanation..
if i make it as rule blocked for version 01-01-03 only this 03 version will be block or child 02
and 01 also in blocked state
Premkumar G Reply
Applying the rule availability as blocked, will impact only the exact version.
But anyway, blocked rule will get picked up and throws error. In your case, 03
will get pciked up and throw error
Leave a Reply
Your email address will not be published. Required fields are marked *
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 40/46
6/28/2019 What is rule availability in Pega
Comment
Name*
Jane Doe
Email*
name@email.com
Website
http://google.com
Post Comment
Search …
Search
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 41/46
6/28/2019 What is rule availability in Pega
Email Address
Subscribe
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 42/46
6/28/2019 What is rule availability in Pega
▼Authorization (3)
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 44/46
6/28/2019 What is rule availability in Pega
►Integration (22)
▼Process (7)
How to configure Split Join, Split for Each & Spin O in flow rule?
►Reporting (4)
►Technical (5)
▼Uncategorized (2)
myknowpega.com/2017/06/26/what-is-rule-availability-in-pega/ 46/46