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.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions