本文整理了Java中org.camunda.bpm.model.bpmn.Bpmn.createProcess()
方法的一些代码示例,展示了Bpmn.createProcess()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bpmn.createProcess()
方法的具体详情如下:
包路径:org.camunda.bpm.model.bpmn.Bpmn
类名称:Bpmn
方法名:createProcess
暂无
代码示例来源:origin: camunda/camunda-bpm-platform
public static ProcessBuilder createExecutableProcess(String processId) {
return createProcess(processId).executable();
}
代码示例来源:origin: camunda/camunda-bpm-platform
public static ProcessBuilder createExecutableProcess() {
return createProcess().executable();
}
代码示例来源:origin: camunda/camunda-bpm-platform
public static ProcessBuilder createProcess(String processId) {
return createProcess().id(processId);
}
代码示例来源:origin: camunda/camunda-bpm-platform
private InputStream createMockDeploymentResourceBpmnDataNonExecutableProcess() {
// do not close the input stream, will be done in implementation
String model = Bpmn.convertToString(Bpmn.createProcess().startEvent().endEvent().done());
InputStream inputStream = new ByteArrayInputStream(model.getBytes());
return inputStream;
}
代码示例来源:origin: camunda/camunda-bpm-platform
public void testDeployNonExecutableProcess() throws Exception {
// given non executable process definition
final BpmnModelInstance modelInstance = Bpmn.createProcess("foo").startEvent().userTask().endEvent().done();
// when process model is deployed
DeploymentWithDefinitions deployment = repositoryService.createDeployment()
.addModelInstance("foo.bpmn", modelInstance).deployWithResult();
deploymentIds.add(deployment.getId());
// then deployment contains no deployed process definition
assertNull(deployment.getDeployedProcessDefinitions());
// and there exist no persisted process definitions
assertNull(repositoryService.createProcessDefinitionQuery()
.processDefinitionResourceName("foo.bpmn")
.singleResult());
}
代码示例来源:origin: org.camunda.bpm.model/camunda-bpmn-model
public static ProcessBuilder createExecutableProcess(String processId) {
return createProcess(processId).executable();
}
代码示例来源:origin: camunda/camunda-bpmn-model
public static ProcessBuilder createExecutableProcess() {
return createProcess().executable();
}
代码示例来源:origin: org.camunda.bpm.model/camunda-bpmn-model
public static ProcessBuilder createProcess(String processId) {
return createProcess().id(processId);
}
代码示例来源:origin: org.camunda.bpm.model/camunda-bpmn-model
public static ProcessBuilder createExecutableProcess() {
return createProcess().executable();
}
代码示例来源:origin: camunda/camunda-bpmn-model
public static ProcessBuilder createProcess(String processId) {
return createProcess().id(processId);
}
代码示例来源:origin: camunda/camunda-bpmn-model
public static ProcessBuilder createExecutableProcess(String processId) {
return createProcess(processId).executable();
}
代码示例来源:origin: berndruecker/flowing-retail-old
private void createFlow() {
engine.getRepositoryService().createDeployment() //
.addModelInstance("order.bpmn", Bpmn.createProcess("order").executable() //
.startEvent()
.serviceTask().name("Retrieve payment").camundaClass(RetrievePaymentAdapter.class.getName())
.serviceTask().name("Fetch goods").camundaClass(FetchGoodsAdapter.class.getName())
.serviceTask().name("Ship goods").camundaClass(ShipGoodsAdapter.class.getName())
.endEvent().camundaExecutionListenerClass("end", OrderDeliveredAdapter.class.getName())
.done()
).deploy();
}
代码示例来源:origin: berndruecker/flowing-retail-old
private void createCompensationFlow() {
engine.getRepositoryService().createDeployment() //
.addModelInstance("travel.bpmn", Bpmn.createProcess("travel").executable() //
.startEvent()
.serviceTask().name("Reserve car") //.camundaClass(ReserveCar.class)
.boundaryEvent().compensateEventDefinition().activityRef("compensateCar").compensateEventDefinitionDone()
.done()
).deploy();
}
}
代码示例来源:origin: org.camunda.bpm/camunda-engine
public void testDeployNonExecutableProcess() throws Exception {
// given non executable process definition
final BpmnModelInstance modelInstance = Bpmn.createProcess("foo").startEvent().userTask().endEvent().done();
// when process model is deployed
DeploymentWithDefinitions deployment = repositoryService.createDeployment()
.addModelInstance("foo.bpmn", modelInstance).deployWithResult();
deploymentIds.add(deployment.getId());
// then deployment contains no deployed process definition
assertNull(deployment.getDeployedProcessDefinitions());
// and there exist no persisted process definitions
assertNull(repositoryService.createProcessDefinitionQuery()
.processDefinitionResourceName("foo.bpmn")
.singleResult());
}
代码示例来源:origin: berndruecker/flowing-retail-old
/** just for visualization, needed on blog post / slide **/
private void createComplexFlow() {
engine.getRepositoryService().createDeployment() //
.addModelInstance("order.bpmn", Bpmn.createProcess("order").executable() //
.startEvent()
.serviceTask().name("A")
.parallelGateway("fork1")
.serviceTask().name("B")
.parallelGateway("join2")
.moveToNode("fork1")
.serviceTask().name("C")
.parallelGateway("fork2")
.serviceTask().name("D")
.parallelGateway("join1")
.moveToNode("fork2")
.serviceTask().name("E")
.connectTo("join1")
.connectTo("join2")
.endEvent()
.done()
).deploy();
}
private void createCompensationFlow() {
内容来源于网络,如有侵权,请联系作者删除!