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]
Howdy, Stranger!
Categories
- 4.4K All Categories
- 86 General
- 13 Training
- 212 Installation / Setup
- 1.2K Flows
- 111 Rules
- 276 Administration
- 214 Portal
- 498 General Q & A
- 718 Forms
- 351 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 188 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 70 Repository
- 231 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 27 Active Directory
- 12 Version 7
- 36 Version 8
- 143 Lunch And Learn Questions