Login and Session Information java does not work when started from TaskQueue since 2606
0
I use a microflow that generates a report from Teamcenter data. The generation is started by a user and is put in a taskqueue, so I can make sure it is not possible to start multiple processes at the same time. However, since updating to 2606.0.0 the Login action and GetTcSessionInformation action fail, and the exception notes that they cannot be invoked from system context.com.mendix.core.CoreRuntimeException: Failed to retrieve the user session for this context. Note that this action cannot be executed from a System Context.Does anyone know why this has been changed, and if there is a way to still be able to run these actions from a task queue.
asked
Sven Klinkhamer
1 answers
0
Hi,
You can try to call "CommunityCommons.commitInSeparateDatabaseTransaction" on the "currentSession" object before calling login.