Removing a package snapshot in Guvnor (JBoss BRMS 5.x) programmatically

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Enterprise Business Rule Management System (BRMS) 5.3.x

Issue

  • Is the REST API capable of deleting a package entirely from the Snapshot Area? What alternatives are there to do so for selected packages?
  • Is there a way to programmatically remove a package snapshot in Guvnor (BRM)?

Resolution

org.drools.repository.RulesRepository class has a method public void removePackageSnapshot(String packageName, String snapshotName) which is used to remove the desired snapshot from snapshot area. This class is used internally by Guvnor UI (BRM) to remove snapshots.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments