-
Feature Request
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
This code is unnecessarily verbose, it is more convenient to have an overloaded method accepting the class directly as an alternative.
engine.getRepositoryService().createDeployment() // .addModelInstance("order.bpmn", Bpmn.createProcess("order").executable() // .startEvent() .serviceTask().name("Do payment").camundaClass(DoPaymentAdapter.class.getName()) .serviceTask().name("Pick goods").camundaClass(PickGoodsAdapter.class.getName()) .serviceTask().name("Ship goods").camundaClass(ShipGoodsAdapter.class.getName()) .endEvent().camundaExecutionListenerClass("end", OrderCompletedAdapter.class.getName()) .done() ).deploy();
I implemented this already and will do a pull request soon.
Why is this important to me? I currently use a lot of model API on slides - and there the additional ".getName()" is really a bummer - and the fix is so easy