We would like to automatically log-out a user at the end of a process flow that is initiated by the same user. If it is not possible to do so automatically, is there an option to switch accounts within the application, without closing and opening the application.
We have thought about alternative options as well such as a windows batch (.bat) file that closes and opens the application automatically. Is it possible to trigger such a script within the TW application? Triggering such a script with a specific key binding outside of the TW application does not work well in widows.
Best answer by Henk-Jan van Laar
Hi Philip,
I was curious to try this and it works pretty well:
Make a task in the SF that uses ‘Windows Command‘ as the logic type and assign it to a table or menu
Give it an object name with brackets (e.g. “[bat_file_location”]
Give it a parameter with the same name as the object name, but without the brackets (e.d. “bat_file_location”)
Give the parameter a default value with the location of the .bat file (e.g. “c:\temp\file.bat”), maybe use an expression default if the path is very long or calculated
We would like to automatically log-out a user at the end of a process flow that is initiated by the same user
That is indeed not possible as we currently don't have such process flow action. Feel free to create an idea for this
If it is not possible to do so automatically, is there an option to switch accounts within the application, without closing and opening the application.
Not in the usual way. The true logged-in user cannot be switched as the application is opened and tailored to the user that is logged in. You could build a way of logging in inside your application. This does require some clever coding and modelling, but some customers are already doing it like this.
This is limited as it is not possible to have different roles and rights between users as the true logged-in user doesn't change - just the operator.
We have thought about alternative options as well such as a windows batch (.bat) file that closes and opens the application automatically. Is it possible to trigger such a script within the TW application?
In the Windows GUI we do allow Windows command tasks to be executed. This can call an external program or batch file like you mentioned. The docs tells some more about it: Tasks | Thinkwise Documentation (thinkwisesoftware.com)
I was curious to try this and it works pretty well:
Make a task in the SF that uses ‘Windows Command‘ as the logic type and assign it to a table or menu
Give it an object name with brackets (e.g. “[bat_file_location”]
Give it a parameter with the same name as the object name, but without the brackets (e.d. “bat_file_location”)
Give the parameter a default value with the location of the .bat file (e.g. “c:\temp\file.bat”), maybe use an expression default if the path is very long or calculated
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.