i have an application based on camel and flowable and spring boot.
In eclipse all worked fine.
But when using the sping boot jar build by repackage it will not deploy the bpmn20.xml.
Where (outside) must I put it?
If /app is my root directory and the current workding dir when springbootapplication starts it will not read or find it. I tried /app/resources/processes/app.bpmn20.xml and the like.
When I configure the flowable path in the application.properties it is found.
Where shall I put the app.bpmn20.xml so that it is found by default mechanism? There is not log where flowable starter searches. It only says “no auto deployment found” six times.
If you use the loader.path then make sure that you read really good the link that @joram sent. It would . only work if you use the property launcher which is not the default one configured by SPring Boot.
What I would suggest is that you put your app.bpmn20.xml in your application resources. For example if your code is located under src/main/java and your resources under src/main/resources. You would put it under src/main/resources/processes.
In case you don’t want to package the app.bpmn20.xml with your application then I’d suggest you to modify the flowable.process-ddefinition-location-prefix. The default value is classpath*:/processes/. However, you can set it to something like: file:/app/processes/. This would then look for processes in the appropriate folder on the file system.
What do you mean by repacked?
Are you simply adding the flowable spring boot jar into your existing camel+spring boot application?
It may be easier to add flowable as a dependency to your pom and create your own configuration class similar to something like this:
From there you can load your resources using something like:
Using the method above, you could pretty much load them from wherever you want and just call processEngineConfiguration.setDeploymentResources(getProcesses());
in the processEngineConfiguration() method.