Once a workflow is started, a variable called "path" is automatically added to the process instance. This variable acts as a link to the path for which the workflow was started. I would like to figure out how to make another variable that acts as a link to another file/folder. How can I do this? What type of variable would I need to add?
I would like to pull the class name of the path variable no matter what I do, I can't seem to get access to the "path" variable. The only reason I know that it exists is because I can see it in the workflow view of the dashboard and also the the view available for the administrators. The following Script code for process instance 223439 resulted in false which proves that the "path" variable doesn't seem to be publicly accessible:
I would like to pull the class name of the path variable no matter what I do, I can't seem to get access to the "path" variable. The only reason I know that it exists is because I can see it in the workflow view of the dashboard and also the the view available for the administrators. The following Script code for process instance 223439 resulted in false which proves that the "path" variable doesn't seem to be publicly accessible:
Code: Select all
import com.openkm.api.OKMWorkflow;import com.openkm.api.*;
import com.openkm.core.*;
import com.openkm.bean.*;
import com.openkm.bean.form.*;
String token = JcrSessionManager.getInstance().getSystemToken();
OKMWorkflow obj = OKMWorkflow.getInstance();
obj.getProcessInstance(token, 223439).getVariables().containsKey("path");
