-
Feature Request
-
Resolution: Won't Fix
-
L3 - Default
-
None
-
None
-
None
Currently you alway have to specify a file name - even if the model is created by the Model API. To make things worse, this file name HAS to end by ".bpmn".
camunda.getRepositoryService().createDeployment() //
.addModelInstance("trip.bpmn", saga.getModel()) //
.deploy();
This is confusing if you do not know of BPMN (and do not care). As the 90% use case is to define exactly one executable process it should be possible to deploy a ModelInstance without providing the file name.
A file name can be automatically guessed by the BPMN processId.
So:
Bpmn.createExecutableProcess("trip")
will end up in a file "trip.bpmn".
Whenever this is not unique (e.g. multiple processes in one ModelInstance) we can just create a random file name (UUID) to avoid any problems.