void assertGeneralSet(BPMNGeneralSet generalSet, String nodeName, String documentation) { assertThat(generalSet).isNotNull(); assertThat(generalSet.getName()).isNotNull(); assertThat(generalSet.getDocumentation()).isNotNull(); assertThat(generalSet.getName().getValue()).isEqualTo(nodeName); assertThat(generalSet.getDocumentation().getValue()).isEqualTo(documentation); }
void assertGeneralSet(BPMNGeneralSet generalSet, String nodeName, String documentation) { assertThat(generalSet).isNotNull(); assertThat(generalSet.getName()).isNotNull(); assertThat(generalSet.getDocumentation()).isNotNull(); assertThat(generalSet.getName().getValue()).isEqualTo(nodeName); assertThat(generalSet.getDocumentation().getValue()).isEqualTo(documentation); }
private void assertGeneralSet(BPMNGeneralSet generalSet, String nodeName, String documentation) { assertThat(generalSet).isNotNull(); assertThat(generalSet.getName()).isNotNull(); assertThat(generalSet.getDocumentation()).isNotNull(); assertThat(generalSet.getName().getValue()).isEqualTo(nodeName); assertThat(generalSet.getDocumentation().getValue()).isEqualTo(documentation); }
void assertGeneralSet(BPMNGeneralSet generalSet, String nodeName, String documentation) { assertNotNull(generalSet); assertNotNull(generalSet.getName()); assertNotNull(generalSet.getDocumentation()); assertEquals(nodeName, generalSet.getName().getValue()); assertEquals(documentation, generalSet.getDocumentation().getValue()); }
void assertGeneralSet(BPMNGeneralSet generalSet, String nodeName, String documentation) { assertNotNull(generalSet); assertNotNull(generalSet.getName()); assertNotNull(generalSet.getDocumentation()); assertEquals(nodeName, generalSet.getName().getValue()); assertEquals(documentation, generalSet.getDocumentation().getValue()); }
void assertGeneralSet(BPMNGeneralSet generalSet, String nodeName, String documentation) { assertNotNull(generalSet); assertNotNull(generalSet.getName()); assertNotNull(generalSet.getDocumentation()); assertEquals(nodeName, generalSet.getName().getValue()); assertEquals(documentation, generalSet.getDocumentation().getValue()); }
void assertGeneralSet(BPMNGeneralSet generalSet, String nodeName, String documentation) { assertNotNull(generalSet); assertNotNull(generalSet.getName()); assertNotNull(generalSet.getDocumentation()); assertEquals(nodeName, generalSet.getName().getValue()); assertEquals(documentation, generalSet.getDocumentation().getValue()); }
private PropertyWriter noneEvent(Node<View<EndNoneEvent>, ?> n) { EndEvent event = bpmn2.createEndEvent(); event.setId(n.getUUID()); BaseEndEvent definition = n.getContent().getDefinition(); ThrowEventPropertyWriter p = propertyWriterFactory.of(event); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter compensationEvent(Node<View<IntermediateCompensationEvent>, ?> n) { CatchEventPropertyWriter p = createCatchEventPropertyWriter(n); p.getFlowElement().setId(n.getUUID()); IntermediateCompensationEvent definition = n.getContent().getDefinition(); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.addCompensation(); p.setBounds(n.getContent().getBounds()); return p; }
@Test public void testConvertEdge() { associationConverter.convertEdge(association, nodes); verify(definition).setGeneral(generalSetCaptor.capture()); assertEquals(ASSOCIATION_DOCUMENTATION, generalSetCaptor.getValue().getDocumentation().getValue()); BpmnEdge.Simple result = (BpmnEdge.Simple) associationConverter.convertEdge(association, nodes); assertEquals(sourceNode, result.getSource()); assertEquals(targetNode, result.getTarget()); assertEquals(sourceConnection, result.getSourceConnection()); assertEquals(targetConnection, result.getTargetConnection()); assertEquals(controlPoints, result.getControlPoints()); } }
private PropertyWriter terminateEvent(Node<View<EndTerminateEvent>, ?> n) { EndEvent event = bpmn2.createEndEvent(); event.setId(n.getUUID()); EndTerminateEvent definition = n.getContent().getDefinition(); ThrowEventPropertyWriter p = propertyWriterFactory.of(event); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.addTerminate(); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter compensationEvent(Node<View<EndCompensationEvent>, ?> n) { EndEvent event = bpmn2.createEndEvent(); event.setId(n.getUUID()); EndCompensationEvent definition = n.getContent().getDefinition(); ThrowEventPropertyWriter p = propertyWriterFactory.of(event); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.addCompensation(); p.setBounds(n.getContent().getBounds()); return p; } }
private PropertyWriter compensationEvent(Node<View<IntermediateCompensationEventThrowing>, ?> n) { IntermediateThrowEvent event = bpmn2.createIntermediateThrowEvent(); event.setId(n.getUUID()); IntermediateCompensationEventThrowing definition = n.getContent().getDefinition(); ThrowEventPropertyWriter p = propertyWriterFactory.of(event); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.addCompensation(); p.setBounds(n.getContent().getBounds()); return p; } }
private PropertyWriter parallel(Node<View<ParallelGateway>, ?> n) { org.eclipse.bpmn2.ParallelGateway gateway = bpmn2.createParallelGateway(); GatewayPropertyWriter p = propertyWriterFactory.of(gateway); gateway.setId(n.getUUID()); ParallelGateway definition = n.getContent().getDefinition(); p.setGatewayDirection(n); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.setBounds(n.getContent().getBounds()); return p; } }
private PropertyWriter exclusive(Node<View<ExclusiveGateway>, ?> n) { org.eclipse.bpmn2.ExclusiveGateway gateway = bpmn2.createExclusiveGateway(); GatewayPropertyWriter p = propertyWriterFactory.of(gateway); gateway.setId(n.getUUID()); ExclusiveGateway definition = n.getContent().getDefinition(); p.setGatewayDirection(n); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); GatewayExecutionSet executionSet = definition.getExecutionSet(); p.setDefaultRoute(executionSet.getDefaultRoute().getValue()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter noneEvent(Node<View<StartNoneEvent>, ?> n) { StartEvent event = bpmn2.createStartEvent(); event.setId(n.getUUID()); StartNoneEvent definition = n.getContent().getDefinition(); CatchEventPropertyWriter p = propertyWriterFactory.of(event); event.setIsInterrupting(definition.getIsInterrupting().getValue()); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.setSimulationSet(definition.getSimulationSet()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter inclusive(Node<View<InclusiveGateway>, ?> n) { org.eclipse.bpmn2.InclusiveGateway gateway = bpmn2.createInclusiveGateway(); GatewayPropertyWriter p = propertyWriterFactory.of(gateway); gateway.setId(n.getUUID()); InclusiveGateway definition = n.getContent().getDefinition(); p.setGatewayDirection(n); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); GatewayExecutionSet executionSet = definition.getExecutionSet(); p.setDefaultRoute(executionSet.getDefaultRoute().getValue()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter timerEvent(Node<View<IntermediateTimerEvent>, ?> n) { CatchEventPropertyWriter p = createCatchEventPropertyWriter(n); p.getFlowElement().setId(n.getUUID()); IntermediateTimerEvent definition = n.getContent().getDefinition(); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); CancellingTimerEventExecutionSet executionSet = definition.getExecutionSet(); p.setCancelActivity(executionSet.getCancelActivity().getValue()); p.addTimer(executionSet.getTimerSettings()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter conditionalEvent(Node<View<IntermediateConditionalEvent>, ?> n) { CatchEventPropertyWriter p = createCatchEventPropertyWriter(n); p.getFlowElement().setId(n.getUUID()); IntermediateConditionalEvent definition = n.getContent().getDefinition(); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); CancellingConditionalEventExecutionSet executionSet = definition.getExecutionSet(); p.setCancelActivity(executionSet.getCancelActivity().getValue()); p.addCondition(executionSet.getConditionExpression()); p.setBounds(n.getContent().getBounds()); return p; }
private PropertyWriter messageEvent(Node<View<IntermediateMessageEventCatching>, ?> n) { CatchEventPropertyWriter p = createCatchEventPropertyWriter(n); p.getFlowElement().setId(n.getUUID()); IntermediateMessageEventCatching definition = n.getContent().getDefinition(); BPMNGeneralSet general = definition.getGeneral(); p.setName(general.getName().getValue()); p.setDocumentation(general.getDocumentation().getValue()); p.setAssignmentsInfo( definition.getDataIOSet().getAssignmentsinfo()); CancellingMessageEventExecutionSet executionSet = definition.getExecutionSet(); p.setCancelActivity(executionSet.getCancelActivity().getValue()); p.addMessage(executionSet.getMessageRef()); p.setBounds(n.getContent().getBounds()); return p; }