AnsweredAssumed Answered

after bpmn deployment, activiti still uses previous deployment file

Question asked by puvanenthiran on Mar 18, 2014
Latest reply on Apr 15, 2016 by mauwarrior
I have a activiti process initializer code as below. The bpmn file will be deployed every time when ever I restart my server. I have configured the DB to Oracle DB. If I change the method signature in the bpmn file and java bean, sporadically it is not picking new bpmn file and throws "Unknown method used in expression" exception. Can you please help us to fix this issue.

private static void init() {
   logger.info("Initialization started");
   ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
   repositoryService = processEngine.getRepositoryService();
   repositoryService.createDeployment()
      .addClasspathResource("diagrams/Workflow1.bpmn").deploy();
   repositoryService.createDeployment()
      .addClasspathResource("diagrams/ChildWorkflow.bpmn").deploy();
   repositoryService.createDeployment()
      .addClasspathResource("diagrams/InflightWorkflow.bpmn").deploy();
   runtimeService = processEngine.getRuntimeService();
   logger.info("Initialization ended");
}


Exception:
org.activiti.engine.ActivitiException: Unknown method used in expression: ${!preQualResponseProcessor.hasErrors()}
   at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:55) ~[activiti-engine-5.14.jar:5.14]

Outcomes