Question
Anthem
US
Last activity: 23 Jul 2018 12:43 EDT
Deleting a class
I have created two classes,
-
ABC-Int
-
ABC-Int-
The 2nd one is the correct class. It is an abstract class with many children. The 1st class was created by mistake. I would like to delete ABC-Int. If I delete ABC-Int it should not effect the children of ABC-Int-.
Can anyone provide me the solution for this issue?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
If there are no records create with 'ABC-Int' as applies to class you can delete the class.
Run the 'delete a class' wizard and see if there are no references for this. Do not finish the wizard if you dont want to delete the class.
Bits In Glass
GB
Hi
Could you answer below questions
- Which pega version are you using?
- Did you create these 2 classes manually?
If I'm not wrong from 7.2 version creating abstract class by appending "-" is not mandatory.
I tried to create your 2 classes in my local system (Pega 7.3 version - it would not allow to create 2 classes with same name) and failed to create one class (ABC-Int) when one class (ABC-Int-) is available and vice versa. But in Pega 7.1.8 it is accepting to create 2 classes.
Coming to your question, answer for this is "If you delete first class (ABC-Int) using wizard, it will delete child classes which are linked to second class (ABC-Int-) also". Please find attachment "Delete_Class_1.doc"
If you still want to delete then follow procedure explained in the attachment "Delete_Class.docx"
Note: When we delete a class, this wizard will delete all the rules attached to this class and its child classes
Thanks
Bits In Glass
GB
Hi
I want to add one more thing.
Please let me know "ABC-Int" class contains any rules? If not then you can delete "ABC-Int" class by opening rule and click on delete button.
Thanks
Anthem
US
Thank you for your help. your documentation helped me a lot
I am done with the restructure. It is working as expected. All the classes has been replaced with new class names.
Bits In Glass
GB
Thanks for confirmation
CollabPartnerz
IN
Hi
Go through Rfactor landing page.
System>refactor>Delete a Class.
Pegasystems Inc.
GB
To be on the safe side, I would rename class ABC-Int to something else and then delete the refactor class.
Have a look at this Online help regarding renaming a class.
Kind Regards
Simon
-
Abhishek Anand