Page 1 of 1
how to use scripts
PostPosted:Wed May 11, 2011 9:58 pm
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.
Re: how to use scripts
PostPosted:Fri May 13, 2011 6:55 pm
by jllort
have you read
http://wiki.openkm.com/index.php/Scripting ?
What do you want to do ?
Simple move example
Code: Select allif (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();
}
Re: how to use scripts
PostPosted:Sat May 14, 2011 1:37 am
by bestuaco
thank u,
But this actions is only in folders, i need do that in workflow
Re: how to use scripts
PostPosted:Mon May 16, 2011 8:00 am
by pavila
Can you elaborate your problem description? I don't understand your current scenario.