Hello,
I'm trying to create autostart script, which add automatically property groups.
But I don't understand how to use variables correctly, for example when I have start.bsh like:
How to correctly initialize this (and also these http://wiki.openkm.com/index.php/Script ... ables_used) variables?
Regards,
I'm trying to create autostart script, which add automatically property groups.
But I don't understand how to use variables correctly, for example when I have start.bsh like:
Code: Select all
I've got an error - eventNode variable not found. import javax.jcr.*;
import com.openkm.core.*;
import com.openkm.bean.*;
import com.openkm.module.base.*;
String token = JcrSessionManager.getInstance().getSystemToken();
Session session = JcrSessionManager.getInstance().get(token);
String parent = com.openkm.util.FileUtils.getParent(eventNode.getPath());
How to correctly initialize this (and also these http://wiki.openkm.com/index.php/Script ... ables_used) variables?
Regards,