Decision Management & Intelligence (ODM, DI)

Decision Management & Intelligence (ODM, DI)

Connect with experts and peers to elevate technical expertise, solve problems and share insights


#Data
#Data
#Businessautomation
#DecisionManagement
 View Only
Expand all | Collapse all

How to retrieve the old property value called categories in SessionController before commit the changes

  • 1.  How to retrieve the old property value called categories in SessionController before commit the changes

    Posted 08/03/21 05:41 PM

    We have some customizations in SessionController.java in "private void beforeCommitingElement(IlrBranch branch, IlrCommitableObject co)". There is a rule property called categories provided by ODM, and we are able to access the modified value of this property in beforeCommitingElement, but also want the old value to compare and confirm whether there is a change in this property or not.



    #OperationalDecisionManager(ODM)
    #Support
    #SupportMigration


  • 2.  RE: How to retrieve the old property value called categories in SessionController before commit the changes

    Posted 08/03/21 05:42 PM

    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