Locking an entity to keep it from being changed?

Locking an entity to keep it from being changed?

Comments

  • I am trying to prevent a user from editing an entity when another user is in the process of making changes. I really would like for only one person to have access to edit at a time but both users still should be able to edit. Can decisions do this?

  • Hello,
    This can absolutely be done. What you want to do is use the steps under ObjectLockService which can be found in steps under Integration > Internal Services > ObjectLockService. Ive attached a screenshot showing a small flow that fetches the entity you want to lock and checking if it is locked. If it isnt locked, it locks the entity and allows the current user to edit it. Once they are done editing the entity, it unlocks the entity and allows the next user to edit the entity. If it is locked, it prevents that user from editing it. Hopefully this helps!

    [img]https://lh3.googleusercontent.com/MWOr0I65cYuC8fM_pjkt29GEjUjVIY1j9IZ928dzAXnKU3sU_xxuuLc-PdzQdybZNEyfe6--6f1Q-cRv5MFYVTNbaad6TIrxWQGupbohroBZiDv5cP3mtFOnipvXIASKv2LKNO-9[/img]
    [i]edited by kenan@decisions.com on 10/11/2019[/i]
    [i]edited by kenan@decisions.com on 10/11/2019[/i]

Sign In or Register to comment.