In onCommitElement the artifact is not yet committed hence one can retrieve the details of the element before the change using the version of the handle.
One can retrieve the new categories by ((IlrBusinessRule) co.getRootDetails()).getCategories().
To retrieve the old ones, something like ((IlrBusinessRule) session.getElementDetailsForThisHandle(co.getRootElementHandle())).getCategories() should do the trick.
#OperationalDecisionManager(ODM)#Support#SupportMigration