Search in sources :

Example 1 with FlowElement

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);
}
Also used : FlowElement(io.camunda.zeebe.model.bpmn.instance.FlowElement) BpmnModelInstance(io.camunda.zeebe.model.bpmn.BpmnModelInstance) Test(org.junit.Test)

Example 2 with FlowElement

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);
}
Also used : FlowElement(io.camunda.zeebe.model.bpmn.instance.FlowElement) BpmnModelInstance(io.camunda.zeebe.model.bpmn.BpmnModelInstance) Test(org.junit.Test)

Example 3 with FlowElement

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);
}
Also used : FlowElement(io.camunda.zeebe.model.bpmn.instance.FlowElement) BpmnModelInstance(io.camunda.zeebe.model.bpmn.BpmnModelInstance) Test(org.junit.Test)

Aggregations

BpmnModelInstance (io.camunda.zeebe.model.bpmn.BpmnModelInstance)3 FlowElement (io.camunda.zeebe.model.bpmn.instance.FlowElement)3 Test (org.junit.Test)3