How to initialise session in v5

Confluence User - 29 Sep, 2016

We were using  org.joget.commons.util.ThreadSessionUtil.initSession() to initialise session in plugin. Same class to close the session. Now after upgrading to v5, ThreadSessionUtil class is not found in the wflow-commons jar. What is newer way of initialising the session in v5?

session;plugins

1


29 Sep, 2016
confluenceUser
confluenceUser

In v5, Joget Workflow updated Spring Framework version and modified Spring application context configuration which make the ThreadSessionUtil is no more needed. 

For security reason, an inherited Thread class called PluginThread is also added to replace the usual Thread class. Please refer to its usage in EmailTool or UserNotificationAuditTrail.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print