I am using version 7.2. When I try to save a class rule to a branch I get the error: This instance already exists. The Class rule is not in my branch.
It was easy to reproduce the problem in version 8.6 on pega academy. I used the Senior System Architect mission and the Skimming a ruleset challenge. In the HR Apps 01.01.01 application I added a Branch named BRc. Saved the application rule. Opened the TGB-HRApps-Work-EmployeeEvaluation Class. Tried to perform a "Save As" to BRc branch and got error instance all ready exist. See screen shot. I checked the class is not in BRc.
I have read article SA-31013 which writes about this issue. And HRApps:01-01-02 was unlocked and then I tried it with HRApps:01-01-01 and HRApps:01:01:02 unlocked. Same Results.
@RickW481 - Class rules are non rule resolved rules. So, its not possible to version them and there can be only 1 instance of a class rule with a particular name. You cannot save as a class in a different ruleset, but just change the created in version field.
@SuditSNG - Thanks for taking the time to look at my question. I found out the following info that I think you would want to know: Class cannot be branched, as its the belongs to NON VERSION CONTROLLED ENVIRONMENT of pega.
Again I appreciate your help.
Posted: 4 months ago
Posted: 7 Jan 2022 1:37 EST
Chandan U (ChandanU5252)
@RickW481Class is unit structure, where we place our attributes, business functional Components. When a class gets executed it produces desired output.
Branches help you manage work in development environments in which multiple teams contribute to a single application. You use branches to develop software simultaneously in a version-controlled environment.
So Class cannot be branched, as its the belongs to NON VERSION CONTROLLED ENVIRONMENT of pega.