cancel
Showing results for 
Search instead for 
Did you mean: 

Must I always deploy process before run it?

bogdan
Champ in-the-making
Champ in-the-making
Hi

Must I always deploy process before run it?
Like this:

     String deploymentId = repositoryService
     .createDeployment()
     .addClasspathResource("org/activiti/examples/bpmn/usertask/FinancialReportProcess.bpmn20.xml")
     .deploy()
     .getId();

ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("financialReport");
//operations on TaskService


When I delete deploy() execution I got Error:
org.activiti.engine.ActivitiException: no processes deployed with key 'financialReport'

But this process is in Activiti Explorer and Probe.

Thanks in advance.
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi,

Did you make sure that you run the Java code against the remote H2 database?
If the Activiti Explorer and Probe shows that the BPMN process is deployed you should be able to start a new process instance from the Java code when you run it against the same remote H2 database.

Best regards,