12-21-2010 07:18 PM
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
RepositoryService repositoryService = processEngine.getRepositoryService();
Deployment deployment = repositoryService.createDeployment().addClasspathResource("financialreportprocess.xml").deploy();
processEngine.getRuntimeService().startProcessInstanceByKey("financialReport");
This is the error I am receiving upon execution.
Exception in thread "main" org.activiti.engine.ActivitiException: no processes deployed with key 'financialReport'
at org.activiti.engine.impl.db.DbRepositorySession.findDeployedLatestProcessDefinitionByKey(DbRepositorySession.java:206)
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:52)
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:29)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:22)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:37)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:40)
I am new to Activiti, please help me here in case I am missing anything.
12-22-2010 02:58 AM
12-22-2010 03:50 AM
12-22-2010 04:14 AM
12-22-2010 04:49 AM
12-22-2010 05:37 AM
12-23-2010 12:50 AM
05-30-2012 02:05 AM
I'm fairly new to it myself, but I came across a similar problem.
To get Activiti to recogise and parse a bpmn process I think it needs a specific file name suffix, as you can deploy other kinds of resource.
So if you change the name of your file from financialreportprocess.xml to financialreportprocess.bpmn20.xml, and of course change the deploy call to match, it should work.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.