Good Day!
Is this possible?
When my workflow starts, a folder is automatically created and is renamed by user1 based on what he/she will input in the form.
Then that newly created folder will be the storage for all the users who is tasked to upload a document.
I don't know how to set the upload path of all users (who is tasked to upload a file) in the created folder.
by the way this is my code in the creation of the folder:
Is this possible?
When my workflow starts, a folder is automatically created and is renamed by user1 based on what he/she will input in the form.
Then that newly created folder will be the storage for all the users who is tasked to upload a document.
I don't know how to set the upload path of all users (who is tasked to upload a file) in the created folder.
by the way this is my code in the creation of the folder:
Code: Select all
Thank you! package com.sample.action;
import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;
//import com.openkm.bean.form.Input;
import com.openkm.api.OKMFolder;
import com.openkm.bean.form.Input;
import com.openkm.module.db.stuff.DbSessionManager;
public class foldercreate implements ActionHandler{
private static final long serialVersionUID = 1L;
@Override
public void execute(ExecutionContext context) throws Exception {
String fldpath = "/okm:root/";
Input sn = (Input) context.getContextInstance().getVariable("sn");
String in = sn.getValue();
String systemToken = DbSessionManager.getInstance().getSystemToken();
OKMFolder.getInstance().createSimple(systemToken,fldpath +in);
context.getToken().signal();
}
}