org.camunda.bpm.model.bpmn.Bpmn.doCreateEmptyModel()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(246)

本文整理了Java中org.camunda.bpm.model.bpmn.Bpmn.doCreateEmptyModel()方法的一些代码示例,展示了Bpmn.doCreateEmptyModel()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bpmn.doCreateEmptyModel()方法的具体详情如下:
包路径:org.camunda.bpm.model.bpmn.Bpmn
类名称:Bpmn
方法名:doCreateEmptyModel

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

相关文章