use of io.camunda.zeebe.model.bpmn.instance.FlowElement in project zeebe by zeebe-io.
the class ProcessBuilderTest method testSetIdAsDefaultNameForFlowElements.
@Test
public void testSetIdAsDefaultNameForFlowElements() {
final BpmnModelInstance instance = Bpmn.createExecutableProcess("process").startEvent("start").userTask("user").endEvent("end").name("name").done();
final String startName = ((FlowElement) instance.getModelElementById("start")).getName();
assertEquals("start", startName);
final String userName = ((FlowElement) instance.getModelElementById("user")).getName();
assertEquals("user", userName);
final String endName = ((FlowElement) instance.getModelElementById("end")).getName();
assertEquals("name", endName);
}
use of io.camunda.zeebe.model.bpmn.instance.FlowElement in project zeebe by camunda-cloud.
the class ProcessBuilderTest method testSetIdAsDefaultNameForFlowElements.
@Test
public void testSetIdAsDefaultNameForFlowElements() {
final BpmnModelInstance instance = Bpmn.createExecutableProcess("process").startEvent("start").userTask("user").endEvent("end").name("name").done();
final String startName = ((FlowElement) instance.getModelElementById("start")).getName();
assertEquals("start", startName);
final String userName = ((FlowElement) instance.getModelElementById("user")).getName();
assertEquals("user", userName);
final String endName = ((FlowElement) instance.getModelElementById("end")).getName();
assertEquals("name", endName);
}
use of io.camunda.zeebe.model.bpmn.instance.FlowElement in project zeebe by camunda.
the class ProcessBuilderTest method testSetIdAsDefaultNameForFlowElements.
@Test
public void testSetIdAsDefaultNameForFlowElements() {
final BpmnModelInstance instance = Bpmn.createExecutableProcess("process").startEvent("start").userTask("user").endEvent("end").name("name").done();
final String startName = ((FlowElement) instance.getModelElementById("start")).getName();
assertEquals("start", startName);
final String userName = ((FlowElement) instance.getModelElementById("user")).getName();
assertEquals("user", userName);
final String endName = ((FlowElement) instance.getModelElementById("end")).getName();
assertEquals("name", endName);
}
Aggregations