In this blog we will cover, how rules you create in branch are saved. Where and which ruleset a branch rules will be saved into. Before understanding this, lets first understand what branch is.
Brach ruleset
For every branch you create, Pega creates a Ruleset with branch name into it. This ruleset is used to save all the rules which you add / edit under your branch.
Important - Hence now we can confidently say that a branch is nothing but a ruleset.
Let's find the ruleset created for branch. To do this, just open any rule which is created into your branch, and you will see the name of the ruleset created for branch. One example is given below. Ruleset name for the branch is rounded in red line.

Target Ruleset
Pay attention to the name of branch ruleset. It has name of branch and also a ruleset name where this rule will be saved after branch is merged. This ruleset is called Target ruleset.
Not clear yet, no worries. Let create a new property into a branch called Booking.

Select your branch name you want your rule to save, and most importantly the Ruleset. Here one thing to note is that the property you are creating is saved in Branch [or Branch ruleset] then why Pega is asking to specify a ruleset? This is for the purpose to know which ruleset where rules will be saved when this branch is merged, and this is called Target Ruleset and same is added in the name of ruleset of branch.
Last but not least when you create a branch, the ruleset associated with branch will be put up in the ruleset hierarchy of your operator profile. This also means that if you checkout any rule in branch will be prioritize higher than rule in your ruleset and also Rule Resolution will pick the rule in branch if it exists there.
Comentarios