[CAM-8168] Use id as default name of elements created with the Model API Created: 29/Aug/17  Updated: 17/Nov/17  Resolved: 02/Nov/17

Status: Closed
Project: camunda BPM
Component/s: bpmn model api
Affects Version/s: None
Fix Version/s: 7.8.0, 7.8.0-alpha6

Type: Feature Request Priority: L3 - Default
Reporter: Bernd Rücker Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: EasyPick, SUPPORT
Remaining Estimate: 0 minutes
Time Spent: Not Specified
Original Estimate: 0 minutes

Attachments: PNG File screenshot-1.png    
Issue Links:
Depedendency

 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.


Generated at Thu Aug 16 10:33:33 CEST 2018 using JIRA 6.4.6#64021-sha1:33e5b454af4594f54560ac233c30a6e00459507e.