I have a SpringBoot application with embeded camunda engine, can someone please explain why the following code fails to load process definitions (i.e. processDefinitions.size()==0 after the code execution)?
It turned out that in case adding .bpmn to “resource name” the code above works .addInputStream("first.bpmn", firstStream).addInputStream("second.bpmn", secondStream)
Since it doesn’t throw any exception if a resource name doesn’t end with .bpmn, perhaps it is a bug.
Great that you could solve the problem by your own. I don’t think that this is a bug, since you can deploy more resources than just bpmn (and cmmn and dmn) files.
Don’t you think that good API would either raise an exception?
At least IllegalArgumentException would be nice to have, since it is a RuntimeException and it won’t break backward compatibility even if you still want to support the legact of Tom Baeyens.
A better option would be not letting a developer to make a mistake but preventing it,
i.e. either adding different methods to your DSL
e.g instead of error prone (it’s evident that it is error prone since a person working on a project can not spot an error)
in general, I agree with you, but not in that case.
With this API you can deploy different kind resources (scripts, html forms etc.) and not only bpmn, cmmn, or dmn files. Changing it by making it more restricted, we would indeed break the API, since there might be resources which cannot be deployed anymore.
Hi, I have successfully deployed(MY_APP_DEPLOYMENT) a processes application with some bean(service task bean) and it is working fine.
Then I have added one more bpmn like
repositoryService
.createDeployment()
.enableDuplicateFiltering(false)
.name(“MY_APP_DEPLOYMENT”)
.addInputStream(“first”, firstStream)
.deploy();
Here I am facing issue due My recent bpmn not able to find service task bean.
How can I resolve this?