• jboss codes

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #42910  by jimac
 
Hi!

Is there a tutorial or guide in jboss codes??
I don't understand how the code is constructed.

For example, I don't know how this code is constructed.
Code: Select all
String systemToken = DbSessionManager.getInstance().getSystemToken();
OKMDocument.getInstance().move(systemToken, "/okm:root/doc1.PDF", "/okm:root/folder1);
for what is the systemToken, getInstance() and the DbSessionManager?

Thanks[/b]
 #42921  by jllort
 
Workflow execution is done under non OpenKM user session, then when executing OpenKM code inside workflow must operate with some user ( otherwise will be raised an error). In almost cases the best option is using "system" user. In this piece of code we are getting the token of the user system ( unique session id for system token ) what helps to work as user system.

Hope this will give some light to you.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.