• how to use scripts

  • 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.
 #10974  by bestuaco
 
hi,

my problem is no docs about variables and actions that i can do in the scripts.

if anyone have mini howto or something, i glad the help.
 #10984  by jllort
 
have you read http://wiki.openkm.com/index.php/Scripting ?

What do you want to do ?

Simple move example
Code: Select all
if (eventType.equals("CREATE_DOCUMENT")) {
String docName = eventNode.getPath().substring(eventNode.getPath().lastIndexOf("/")+1, eventNode.getPath().length());
session.move(eventNode.getPath(), "/okm:root/two/" + docName);
session.save();
}
 #10992  by bestuaco
 
thank u,

But this actions is only in folders, i need do that in workflow
 #11013  by pavila
 
Can you elaborate your problem description? I don't understand your current scenario.

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.