Hi Manasa,
If you have deleted the Process/Object then the instance won't be available in BPAProcess table but if you have retired the process/object then you will be able to recover the component XMl easily if I am not wrong either from BPAProcess table or by unretiring the component again from System Manager.
If you have deleted the component, then in order to retrieve it you would need to query the BPAAuditEvents table and check the event where you deleted the object. For example, I deleted a dummy object I created a while ago:
On running the SQL query on my SSMS :
SELECT sNarrative,newXML FROM BPAAuditEvents
You can see that the first record indicates that I created the object and the last record indicates that I deleted the object. I can simply copy the XML text of the first record and paste it in a dummy notepad file and again try to save it with <somename>.xml. Once saved, I can reimport this file again to create my object back.
In case your XML is having more than 8k characters, then you might need to use the data export wizard in SSMS and use some other options.
Also, please note the following considerations:
- Such a method is only advised in a DEV environment. In PROD, do try to either use a backup of bprelease file or the backup of your PROD database if you have that.
- You also might need to see the purging policy if you are in an enterprise where the event logs get deleted in a stipulated period of time. If the logs are achieved then unfortunately there is no other way than using the backups of bprelease file or backkup of PROD database.
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.