We have configured state machine in our DOM module. But different users of LCA app can only set specific transitions. How to create transition button dependency on user?
Hi Herald,
It is currently not possible to limit the ability to transition a DOM instance based on the logged-in user. This is however something we are considering to add as part of the 'DOM Security' feature set that is being developed. I however cannot give any estimation on this right now.
A workaround would be to check the user in the transition script. This is not ideal, but will at least prevent non-authorized users from (accidentally) transitioning the DOM instance using those buttons.
You could also go one step further and use a grid component in a LCA as a button panel instead of the DOM buttons. An ad hoc data source would return the possible transitions as query rows based on the given DOM instance ID and the current user. These can then be visualized as clickable boxes that execute a transition script with the chosen transition. That will require some development, but will most likely result in the most appealing outcome.
Hi Thomas,
I've built the workaround with user and status check in ad hoc data source for getting the corresponding transition buttons in the grid. It works like in edit panel with the "real" transition buttons.
And failure in script shows up in a popup dialog to be confirmed.
It work's ok.