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
- 81 General
- 13 Training
- 209 Installation / Setup
- 1.2K Flows
- 110 Rules
- 270 Administration
- 213 Portal
- 497 General Q & A
- 711 Forms
- 346 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 187 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 70 Repository
- 230 Integrations
- 29 Multi-Tenant
- 27 SDK
- 81 Modules
- 59 Settings
- 26 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions