We've created a workflow, and can manually invoke it through the GUI. We've also successfully fired an event upon upload to have some action occur (rename, move etc.) Where we are falling down is causing that workflow to fire from the script. We've been trying to fire the workflow from the Administration -> Scripts window and can't get it to fire.
OpenKM Version: 5.1.7 (build: 7085)
Any pointers?
Code: Select all
This is the error:
import javax.jcr.*;
import com.openkm.core.*;
import com.openkm.bean.*;
import com.openkm.module.base.*;
import com.openkm.api.*;
import com.openkm.module.*;
import com.openkm.bean.workflow.*;
import com.openkm.bean.form.*;
import com.openkm.module.direct.*;
import com.openkm.module.WorkflowModule.*;
String token = JcrSessionManager.getInstance().getSystemToken();
Session session = JcrSessionManager.getInstance().get(token);
WorkflowModule wm = ModuleManager.getWorkflowModule();
ProcessDefinition pd = wm.getProcessDefinition(token, 13);
ProcessInstance pi;
String myUUID;
pi=wm.runProcessDefinition(token,14,myUUID,wm.getProcessDefinitionForms(token,14));
print(pi);
Code: Select all
No matter what is included the error Sourced file: inline evaluation of: ``import javax.jcr.*; import com.openkm.core.*; import com.openkm.bean.*; impor . . . '' : Error in method invocation: Method runProcessDefinition( java.lang.String, int, null, java.util.HashMap ) not found in class'com.openkm.module.direct.DirectWorkflowModule' : at Line: 18 : in file: inline evaluation of: ``import javax.jcr.*; import com.openkm.core.*; import com.openkm.bean.*; impor . . . '' : wm .runProcessDefinition ( token , 14 , myUUID , wm .getProcessDefinitionForms ( token , 14 ) )
Method runProcessDefinition not found in class...
OpenKM Version: 5.1.7 (build: 7085)
Any pointers?