use of org.camunda.bpm.qa.performance.engine.steps.StartProcessInstanceStep in project camunda-bpm-platform by camunda.
the class ServiceTaskPerformanceTest method threeServiceTasksAndAGateway.
@Test
public void threeServiceTasksAndAGateway() {
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("approved", true);
BpmnModelInstance process = Bpmn.createExecutableProcess("process").startEvent().serviceTask().camundaClass(NoopDelegate.class.getName()).exclusiveGateway("decision").condition("approved", "${approved}").serviceTask().camundaClass(NoopDelegate.class.getName()).moveToLastGateway().condition("not approved", "${not approved}").serviceTask().camundaClass(NoopDelegate.class.getName()).endEvent().done();
Deployment deployment = repositoryService.createDeployment().addModelInstance("process.bpmn", process).deploy();
performanceTest().step(new StartProcessInstanceStep(engine, "process", variables)).run();
}
Aggregations