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()
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