cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to deploy a bpmn20.xml file

ioana
Champ in-the-making
Champ in-the-making
Hi,

I'm trying for some days to test my application and I'm not able to deploy my diagram. I don't receive any errors at deployment, but when I try to start the process, the engine isn't able to find the process key. I've verified and no process definition was indeed deployed.  I've tried using the
@Deployment(resources ="")

annotation, I've also used
<property name="deploymentResources" value="classpath*: …" />
in the configuration file or even
repositoryService.createDeployment().addClasspathResource("….bpmn20.xml").deploy();

I don't know what the problem can be. Maybe is the structur of the application. The configuration file is in first.prototype/src/test/resource/test-context.xml, the process definition in first.prototype/processes/first.prototype/first.prototype.bpmn20.xml and my test class in the test/java.

If anyone can tell what I'm doing wrong I would be very grateful

Thx,

Ioana
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Seems like the "processes" folder is not a source-folder by default. If you're using maven, add this to your project configuration. If you're using eclipse, right-click the folder and do something like "Build Path > make source folder" or "add to build path".

ioana
Champ in-the-making
Champ in-the-making
Hi,

Thank you for your reply. I've added the folder to the source folders in eclipse, but I receive the same error when I try to test it.

Edit: It seams that I've manage to solve this problem, I had to leave out processes from the deployment path, after converting the folder to a src folder.