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.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions