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

Use id as default name of elements created with the Model API

    XMLWordPrintable

Details

    Description

      I currently try to to minimize code required to write good BPMN processes using the model API. One flaw is nugging me - if you do not provide "names" for elements, you end up with blank boxes in the graphical BPMN model:

      ```
      flow.startEvent()
      .serviceTask("retrievePayment").camundaClass(RetrievePaymentAdapter.class) //
      .receiveTask("waitForPayment").message("PaymentReceived") //
      ```

      I have to hand in a name additionally to see something on the graphical model:
      ```
      flow.startEvent()
      .serviceTask("retrievePayment").name("Retrieve payment").camundaClass(RetrievePaymentAdapter.class) //
      .receiveTask("waitForPayment").name("Wait for payment").message("PaymentReceived") //
      ```

      This is unnecessary verbose. If I want to have names that are different from ids it is OK, but we should offer the shortcut, that the id is also used as name whenever no name is given. I do not see use cases for an empty name anyway.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce