return INSTANCE.doCreateEmptyModel();
}
public static ProcessBuilder createProcess() {
BpmnModelInstance modelInstance = INSTANCE.doCreateEmptyModel();
Definitions definitions = modelInstance.newInstance(Definitions.class);
definitions.setTargetNamespace(BPMN20_NS);
definitions.getDomElement().registerNamespace("camunda", CAMUNDA_NS);
modelInstance.setDefinitions(definitions);
Process process = modelInstance.newInstance(Process.class);
String processId = ModelUtil.getUniqueIdentifier(process.getElementType());
process.setId(processId);
definitions.addChildElement(process);
return process.builder();
}