本文整理了Java中org.camunda.bpm.model.bpmn.Bpmn.doCreateEmptyModel()
方法的一些代码示例,展示了Bpmn.doCreateEmptyModel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bpmn.doCreateEmptyModel()
方法的具体详情如下:
包路径:org.camunda.bpm.model.bpmn.Bpmn
类名称:Bpmn
方法名:doCreateEmptyModel
暂无
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Allows creating an new, empty {@link BpmnModelInstance}.
*
* @return the empty model.
*/
public static BpmnModelInstance createEmptyModel() {
return INSTANCE.doCreateEmptyModel();
}
代码示例来源:origin: org.camunda.bpm.model/camunda-bpmn-model
/**
* Allows creating an new, empty {@link BpmnModelInstance}.
*
* @return the empty model.
*/
public static BpmnModelInstance createEmptyModel() {
return INSTANCE.doCreateEmptyModel();
}
代码示例来源:origin: camunda/camunda-bpmn-model
/**
* Allows creating an new, empty {@link BpmnModelInstance}.
*
* @return the empty model.
*/
public static BpmnModelInstance createEmptyModel() {
return INSTANCE.doCreateEmptyModel();
}
代码示例来源:origin: camunda/camunda-bpm-platform
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);
definitions.addChildElement(process);
BpmnDiagram bpmnDiagram = modelInstance.newInstance(BpmnDiagram.class);
BpmnPlane bpmnPlane = modelInstance.newInstance(BpmnPlane.class);
bpmnPlane.setBpmnElement(process);
bpmnDiagram.addChildElement(bpmnPlane);
definitions.addChildElement(bpmnDiagram);
return process.builder();
}
代码示例来源:origin: org.camunda.bpm.model/camunda-bpmn-model
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);
definitions.addChildElement(process);
BpmnDiagram bpmnDiagram = modelInstance.newInstance(BpmnDiagram.class);
BpmnPlane bpmnPlane = modelInstance.newInstance(BpmnPlane.class);
bpmnPlane.setBpmnElement(process);
bpmnDiagram.addChildElement(bpmnPlane);
definitions.addChildElement(bpmnDiagram);
return process.builder();
}
代码示例来源:origin: camunda/camunda-bpmn-model
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);
definitions.addChildElement(process);
BpmnDiagram bpmnDiagram = modelInstance.newInstance(BpmnDiagram.class);
BpmnPlane bpmnPlane = modelInstance.newInstance(BpmnPlane.class);
bpmnPlane.setBpmnElement(process);
bpmnDiagram.addChildElement(bpmnPlane);
definitions.addChildElement(bpmnDiagram);
return process.builder();
}
内容来源于网络,如有侵权,请联系作者删除!