AnsweredAssumed Answered

Must I always deploy process before run it?

Question asked by bogdan on May 16, 2011
Latest reply on May 16, 2011 by trademak
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.

Outcomes