AnsweredAssumed Answered

changes to run activiti 5.9 flows in java over 5.8 seeked

Question asked by aparneshgaurav on Jun 25, 2012
Latest reply on Jun 25, 2012 by aparneshgaurav
Using the following code , i was able to run my activiti 5.8 version flows , now the process id and name of the flows are changed,
Now the error is shown the process with the given process id has not been deployed.Moreover , .bpmn files are generated for flows
instead of .activiti files. Please susggest changes to run activiti 5.9 over running flows in 5.8 .

// ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration().buildProcessEngine();
      ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration().setJdbcUrl("jdbc:postgresql://localhost:5432/postgres").setJdbcDriver("org.postgresql.Driver").setJdbcUsername("postgres").setJdbcPassword("postgres").setJobExecutorActivate(true).setDatabaseSchemaUpdate("true").buildProcessEngine();
      RepositoryService repositoryService = processEngine.getRepositoryService();
      // code to deploy the process
      repositoryService.createDeployment().addClasspathResource("diagrams/MyProcess.bpmn20.xml").deploy(); //DataBaseNodeTest , DataBaseQueryFetchAndForward , SchedulerNodeTest , FtpNodeTest ,
      RuntimeService   runtimeService = processEngine.getRuntimeService();
      // code to run the process instance
      ProcessInstance processInstance = runtimeService.startProcessInstanceById("MyProcess");