Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-7685

Allow to deploy a model instance without providing a file name

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • bpmn model api, engine
    • 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.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              ruecker Bernd Ruecker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: