AnsweredAssumed Answered

Start Process by Disabling Validation

Question asked by zohaibjabbar on Mar 1, 2016
Latest reply on Mar 7, 2016 by zohaibjabbar

I am parsing a bpmn file using Activiti and all goes well. However, if I do not define any 'script' in Script Task then bpmn file will not get deployed. I was going through the functions and came across "disableValidation" function. Now when I call this function and deploy the process, then process will not start.

DeploymentBuilder d = repositoryService.createDeployment();
         Deployment dep = d.deploy();

         runtimeService = processEngine.getRuntimeService();
         processInstance = runtimeService.startProcessInstanceByKey("myProcess");

A Null Pointer exception is thrown at the last line of code.

   at org.activiti.engine.impl.juel.Parser.consumeToken(
   at org.activiti.engine.impl.juel.Parser.tree(
   at org.activiti.engine.impl.juel.TreeStore.get(
   at org.activiti.engine.impl.juel.TreeValueExpression.<init>(
   at org.activiti.engine.impl.juel.ExpressionFactoryImpl.createValueExpression(
   at org.activiti.engine.impl.juel.ExpressionFactoryImpl.createValueExpression(
   at org.activiti.engine.impl.scripting.JuelScriptEngine.parse(
   at org.activiti.engine.impl.scripting.JuelScriptEngine.eval(
   at javax.script.AbstractScriptEngine.eval(

Can I deploy and start the process if no script is available in script task?
My only purpose is to get BpmnModel Object for this xml file.