Search in sources :

Example 36 with SequenceFlow

use of org.eclipse.bpmn2.SequenceFlow in project kie-wb-common by kiegroup.

the class ProcessConverterDelegateTest method mockSequenceFlow.

private SequenceFlow mockSequenceFlow(String id, FlowNode source, FlowNode target) {
    SequenceFlow sequenceFlow = Bpmn2Factory.eINSTANCE.createSequenceFlow();
    sequenceFlow.setSourceRef(source);
    sequenceFlow.setTargetRef(target);
    sequenceFlow.setId(id);
    BPMNEdge shape = mock(BPMNEdge.class);
    when(shape.getWaypoint()).thenReturn(Collections.emptyList());
    plane.getPlaneElement().add(shape);
    when(shape.getBpmnElement()).thenReturn(sequenceFlow);
    return sequenceFlow;
}
Also used : SequenceFlow(org.eclipse.bpmn2.SequenceFlow) BPMNEdge(org.eclipse.bpmn2.di.BPMNEdge)

Example 37 with SequenceFlow

use of org.eclipse.bpmn2.SequenceFlow in project kie-wb-common by kiegroup.

the class ProcessConverterDelegateTest method testConvertEdges.

@Test
public void testConvertEdges() {
    Task task1 = mockTask("1");
    Task task2 = mockTask("2");
    BpmnNode task1Node = mockTaskNode(task1);
    BpmnNode task2Node = mockTaskNode(task2);
    SequenceFlow sequenceFlow = mockSequenceFlow("seq1", task1, task2);
    List<BaseElement> elements = Arrays.asList(sequenceFlow, task1, task2);
    // ignored because there the tasks are not on the nodes map
    assertFalse(converterDelegate.convertEdges(parentNode, elements, new HashMap<>()).value());
    // convert with all nodes
    Map<String, BpmnNode> nodes = new Maps.Builder<String, BpmnNode>().put(task1.getId(), task1Node).put(task2.getId(), task2Node).build();
    assertTrue(converterDelegate.convertEdges(parentNode, elements, nodes).value());
}
Also used : BaseElement(org.eclipse.bpmn2.BaseElement) Task(org.eclipse.bpmn2.Task) ManualTask(org.eclipse.bpmn2.ManualTask) Maps(org.kie.soup.commons.util.Maps) SequenceFlow(org.eclipse.bpmn2.SequenceFlow) BpmnNode(org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.BpmnNode) Test(org.junit.Test)

Example 38 with SequenceFlow

use of org.eclipse.bpmn2.SequenceFlow in project kie-wb-common by kiegroup.

the class BPMNDirectDiagramMarshallerTest method testUnmarshallSequenceFlow.

@Test
public void testUnmarshallSequenceFlow() throws Exception {
    Diagram<Graph, Metadata> diagram = unmarshall(BPMN_SEQUENCEFLOW);
    SequenceFlow sequenceFlow1 = null;
    SequenceFlow sequenceFlow2 = null;
    Iterator<Element> it = nodesIterator(diagram);
    while (it.hasNext()) {
        Element element = it.next();
        if (element.getContent() instanceof View) {
            Object oDefinition = ((View) element.getContent()).getDefinition();
            if (oDefinition instanceof ExclusiveGateway) {
                List<Edge> outEdges = ((NodeImpl) element).getOutEdges();
                for (Edge edge : outEdges) {
                    SequenceFlow flow = (SequenceFlow) ((ViewConnectorImpl) edge.getContent()).getDefinition();
                    if ("route1".equals(flow.getGeneral().getName().getValue())) {
                        sequenceFlow1 = flow;
                    }
                    if ("route2".equals(flow.getGeneral().getName().getValue())) {
                        sequenceFlow2 = flow;
                    }
                }
            }
        }
    }
    assertNotNull(sequenceFlow1);
    assertNotNull(sequenceFlow1.getExecutionSet());
    assertNotNull(sequenceFlow1.getExecutionSet().getConditionExpression());
    assertNotNull(sequenceFlow1.getExecutionSet().getPriority());
    assertNotNull(sequenceFlow1.getGeneral());
    assertNotNull(sequenceFlow1.getGeneral().getName());
    assertEquals("route1", sequenceFlow1.getGeneral().getName().getValue());
    assertEquals("age >= 10;", sequenceFlow1.getExecutionSet().getConditionExpression().getValue().getScript());
    assertEquals("javascript", sequenceFlow1.getExecutionSet().getConditionExpression().getValue().getLanguage());
    assertEquals("2", sequenceFlow1.getExecutionSet().getPriority().getValue());
    assertNotNull(sequenceFlow2);
    assertNotNull(sequenceFlow2.getExecutionSet());
    assertNotNull(sequenceFlow2.getExecutionSet().getConditionExpression());
    assertNotNull(sequenceFlow2.getExecutionSet().getPriority());
    assertNotNull(sequenceFlow2.getGeneral());
    assertNotNull(sequenceFlow2.getGeneral().getName());
    assertEquals("route2", sequenceFlow2.getGeneral().getName().getValue());
    assertEquals("age\n" + "<\n" + "10;", sequenceFlow2.getExecutionSet().getConditionExpression().getValue().getScript());
    assertEquals("java", sequenceFlow2.getExecutionSet().getConditionExpression().getValue().getLanguage());
    assertEquals("1", sequenceFlow2.getExecutionSet().getPriority().getValue());
}
Also used : ExclusiveGateway(org.kie.workbench.common.stunner.bpmn.definition.ExclusiveGateway) Graph(org.kie.workbench.common.stunner.core.graph.Graph) NodeImpl(org.kie.workbench.common.stunner.core.graph.impl.NodeImpl) SequenceFlow(org.kie.workbench.common.stunner.bpmn.definition.SequenceFlow) ItemAwareElement(org.eclipse.bpmn2.ItemAwareElement) FlowElement(org.eclipse.bpmn2.FlowElement) RootElement(org.eclipse.bpmn2.RootElement) Element(org.kie.workbench.common.stunner.core.graph.Element) Metadata(org.kie.workbench.common.stunner.core.diagram.Metadata) View(org.kie.workbench.common.stunner.core.graph.content.view.View) Edge(org.kie.workbench.common.stunner.core.graph.Edge) Test(org.junit.Test)

Example 39 with SequenceFlow

use of org.eclipse.bpmn2.SequenceFlow in project kie-wb-common by kiegroup.

the class BPMNDirectDiagramMarshallerTest method testUnmarshallEventGateway.

@Test
@SuppressWarnings("unchecked")
public void testUnmarshallEventGateway() throws Exception {
    Diagram<Graph, Metadata> diagram = unmarshall(BPMN_EVENT_GATEWAY);
    assertDiagram(diagram, 7);
    assertEquals(diagram.getMetadata().getTitle(), "TestEventGateway");
    Graph graph = diagram.getGraph();
    Node<? extends Definition, ?> gatewayNode = graph.getNode("_AFDF2596-C521-4753-AC22-2DCCAD391F98");
    assertTrue(gatewayNode.getContent().getDefinition() instanceof EventGateway);
    EventGateway eventGateway = (EventGateway) gatewayNode.getContent().getDefinition();
    assertEquals("EventGatewayName", eventGateway.getGeneral().getName().getValue());
    assertEquals("EventGatewayDocumentation", eventGateway.getGeneral().getDocumentation().getValue());
    SequenceFlow inSequenceFlow = gatewayNode.getInEdges().stream().filter(edge -> "_E805280D-5862-4F56-B02A-E34F7D519050".equals(edge.getUUID())).map(edge -> (SequenceFlow) ((ViewConnector) edge.getContent()).getDefinition()).findFirst().orElseThrow(() -> new Exception("Expected sequenceFlow: _E805280D-5862-4F56-B02A-E34F7D519050 was not found"));
    SequenceFlow outSequenceFlow1 = gatewayNode.getOutEdges().stream().filter(edge -> "_CCEF6352-760D-4641-B9C9-0B01FD4DD704".equals(edge.getUUID())).map(edge -> (SequenceFlow) ((ViewConnector) edge.getContent()).getDefinition()).findFirst().orElseThrow(() -> new Exception("Expected sequenceFlow: _CCEF6352-760D-4641-B9C9-0B01FD4DD704 was not found"));
    SequenceFlow outSequenceFlow2 = gatewayNode.getOutEdges().stream().filter(edge -> "_1CD28E0D-1910-45FE-9AEC-932FA28C77AA".equals(edge.getUUID())).map(edge -> (SequenceFlow) ((ViewConnector) edge.getContent()).getDefinition()).findFirst().orElseThrow(() -> new Exception("Expected sequenceFlow: _1CD28E0D-1910-45FE-9AEC-932FA28C77AA was not found"));
    assertNotNull(inSequenceFlow);
    assertEquals("inSequence", inSequenceFlow.getGeneral().getName().getValue());
    assertNotNull(outSequenceFlow1);
    assertEquals("outSequence1", outSequenceFlow1.getGeneral().getName().getValue());
    assertNotNull(outSequenceFlow2);
    assertEquals("outSequence2", outSequenceFlow2.getGeneral().getName().getValue());
}
Also used : EventGateway(org.kie.workbench.common.stunner.bpmn.definition.EventGateway) Arrays(java.util.Arrays) SequenceFlow(org.kie.workbench.common.stunner.bpmn.definition.SequenceFlow) ReusableSubprocessTaskExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.task.ReusableSubprocessTaskExecutionSet) EndErrorEvent(org.kie.workbench.common.stunner.bpmn.definition.EndErrorEvent) Edge(org.kie.workbench.common.stunner.core.graph.Edge) TimerSettings(org.kie.workbench.common.stunner.bpmn.definition.property.event.timer.TimerSettings) SimulationSet(org.kie.workbench.common.stunner.bpmn.definition.property.simulation.SimulationSet) StartTimerEvent(org.kie.workbench.common.stunner.bpmn.definition.StartTimerEvent) UserTask(org.kie.workbench.common.stunner.bpmn.definition.UserTask) GenericServiceTaskValue(org.kie.workbench.common.stunner.bpmn.definition.property.service.GenericServiceTaskValue) DataOutputAssociation(org.eclipse.bpmn2.DataOutputAssociation) Matcher(java.util.regex.Matcher) BasePropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.BasePropertyWriter) GenericServiceTask(org.kie.workbench.common.stunner.bpmn.definition.GenericServiceTask) EndTerminateEvent(org.kie.workbench.common.stunner.bpmn.definition.EndTerminateEvent) Diagram(org.kie.workbench.common.stunner.core.diagram.Diagram) BPMNTestDefinitionFactory(org.kie.workbench.common.stunner.bpmn.BPMNTestDefinitionFactory) WorkItemDefinitionMockRegistry(org.kie.workbench.common.stunner.bpmn.WorkItemDefinitionMockRegistry) NotificationValue(org.kie.workbench.common.stunner.bpmn.definition.property.notification.NotificationValue) Point2D(org.kie.workbench.common.stunner.core.graph.content.view.Point2D) StartConditionalEvent(org.kie.workbench.common.stunner.bpmn.definition.StartConditionalEvent) ScriptTask(org.kie.workbench.common.stunner.bpmn.definition.ScriptTask) BaseReusableSubprocessTaskExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.task.BaseReusableSubprocessTaskExecutionSet) Stream(java.util.stream.Stream) EmbeddedSubprocess(org.kie.workbench.common.stunner.bpmn.definition.EmbeddedSubprocess) GlobalVariables(org.kie.workbench.common.stunner.bpmn.definition.property.diagram.GlobalVariables) Assert.assertFalse(org.junit.Assert.assertFalse) Dock(org.kie.workbench.common.stunner.core.graph.content.relationship.Dock) NoneTask(org.kie.workbench.common.stunner.bpmn.definition.NoneTask) ViewConnectorImpl(org.kie.workbench.common.stunner.core.graph.content.view.ViewConnectorImpl) InputOutputSpecification(org.eclipse.bpmn2.InputOutputSpecification) MockitoJUnitRunner(org.mockito.junit.MockitoJUnitRunner) DeclarationList(org.kie.workbench.common.stunner.bpmn.backend.converters.customproperties.DeclarationList) NotificationsInfo(org.kie.workbench.common.stunner.bpmn.definition.property.notification.NotificationsInfo) Mockito.mock(org.mockito.Mockito.mock) StartCompensationEvent(org.kie.workbench.common.stunner.bpmn.definition.StartCompensationEvent) StartNoneEvent(org.kie.workbench.common.stunner.bpmn.definition.StartNoneEvent) BPMNGeneralSet(org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet) ItemAwareElement(org.eclipse.bpmn2.ItemAwareElement) ItemDefinition(org.eclipse.bpmn2.ItemDefinition) Connection(org.kie.workbench.common.stunner.core.graph.content.view.Connection) Mock(org.mockito.Mock) BusinessRuleTask(org.kie.workbench.common.stunner.bpmn.definition.BusinessRuleTask) RunWith(org.junit.runner.RunWith) MessageRef(org.kie.workbench.common.stunner.bpmn.definition.property.event.message.MessageRef) ExtensionAttributeValue(org.eclipse.bpmn2.ExtensionAttributeValue) AdHocSubprocess(org.kie.workbench.common.stunner.bpmn.definition.AdHocSubprocess) ArrayList(java.util.ArrayList) DataInput(org.eclipse.bpmn2.DataInput) Property(org.eclipse.bpmn2.Property) IntermediateEscalationEventThrowing(org.kie.workbench.common.stunner.bpmn.definition.IntermediateEscalationEventThrowing) ProcessData(org.kie.workbench.common.stunner.bpmn.definition.property.variables.ProcessData) EndCompensationEvent(org.kie.workbench.common.stunner.bpmn.definition.EndCompensationEvent) DefinitionsConverter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.DefinitionsConverter) IntermediateSignalEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventCatching) Before(org.junit.Before) MetaDataType(org.jboss.drools.MetaDataType) AssignmentsInfo(org.kie.workbench.common.stunner.bpmn.definition.property.dataio.AssignmentsInfo) DataInputAssociation(org.eclipse.bpmn2.DataInputAssociation) EndMessageEvent(org.kie.workbench.common.stunner.bpmn.definition.EndMessageEvent) EndSignalEvent(org.kie.workbench.common.stunner.bpmn.definition.EndSignalEvent) BPMNDiagramImpl(org.kie.workbench.common.stunner.bpmn.definition.BPMNDiagramImpl) IntermediateEscalationEvent(org.kie.workbench.common.stunner.bpmn.definition.IntermediateEscalationEvent) Assert.assertTrue(org.junit.Assert.assertTrue) FeatureMap(org.eclipse.emf.ecore.util.FeatureMap) Test(org.junit.Test) Association(org.kie.workbench.common.stunner.bpmn.definition.Association) InterruptingErrorEventExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.event.error.InterruptingErrorEventExecutionSet) Graph(org.kie.workbench.common.stunner.core.graph.Graph) IntermediateMessageEventThrowing(org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventThrowing) Assert.assertNull(org.junit.Assert.assertNull) SignalRef(org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef) WorkItemDefinitionRegistry(org.kie.workbench.common.stunner.bpmn.workitem.WorkItemDefinitionRegistry) IsInterrupting(org.kie.workbench.common.stunner.bpmn.definition.property.event.IsInterrupting) MultipleInstanceSubprocess(org.kie.workbench.common.stunner.bpmn.definition.MultipleInstanceSubprocess) ReassignmentsInfo(org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentsInfo) FlowElement(org.eclipse.bpmn2.FlowElement) ReassignmentValue(org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue) Assert.assertEquals(org.junit.Assert.assertEquals) RootElement(org.eclipse.bpmn2.RootElement) IntermediateCompensationEventThrowing(org.kie.workbench.common.stunner.bpmn.definition.IntermediateCompensationEventThrowing) IntermediateErrorEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateErrorEventCatching) WorkItemDefinitionLookupService(org.kie.workbench.common.stunner.bpmn.workitem.service.WorkItemDefinitionLookupService) StartSignalEvent(org.kie.workbench.common.stunner.bpmn.definition.StartSignalEvent) UserTaskExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.task.UserTaskExecutionSet) Activity(org.eclipse.bpmn2.Activity) IntermediateCompensationEvent(org.kie.workbench.common.stunner.bpmn.definition.IntermediateCompensationEvent) CustomTask(org.kie.workbench.common.stunner.bpmn.workitem.CustomTask) ByteArrayInputStream(java.io.ByteArrayInputStream) DataOutput(org.eclipse.bpmn2.DataOutput) Lane(org.kie.workbench.common.stunner.bpmn.definition.Lane) Assert.fail(org.junit.Assert.fail) Assertions.assertDiagram(org.kie.workbench.common.stunner.bpmn.backend.service.diagram.Assertions.assertDiagram) EStructuralFeatureImpl(org.eclipse.emf.ecore.impl.EStructuralFeatureImpl) NodeImpl(org.kie.workbench.common.stunner.core.graph.impl.NodeImpl) BPMNDiagram(org.kie.workbench.common.stunner.bpmn.definition.BPMNDiagram) StartErrorEvent(org.kie.workbench.common.stunner.bpmn.definition.StartErrorEvent) ExclusiveGateway(org.kie.workbench.common.stunner.bpmn.definition.ExclusiveGateway) Collectors(java.util.stream.Collectors) TaskTypes(org.kie.workbench.common.stunner.bpmn.definition.property.task.TaskTypes) Metadata(org.kie.workbench.common.stunner.core.diagram.Metadata) Objects(java.util.Objects) List(java.util.List) DiagramSet(org.kie.workbench.common.stunner.bpmn.definition.property.diagram.DiagramSet) BPMNDefinitionSet(org.kie.workbench.common.stunner.bpmn.BPMNDefinitionSet) Optional(java.util.Optional) IntermediateTimerEvent(org.kie.workbench.common.stunner.bpmn.definition.IntermediateTimerEvent) StartMessageEvent(org.kie.workbench.common.stunner.bpmn.definition.StartMessageEvent) Pattern(java.util.regex.Pattern) Bounds(org.kie.workbench.common.stunner.core.graph.content.Bounds) Node(org.kie.workbench.common.stunner.core.graph.Node) DataIOSet(org.kie.workbench.common.stunner.bpmn.definition.property.dataio.DataIOSet) ArgumentMatchers.any(org.mockito.ArgumentMatchers.any) EndEscalationEvent(org.kie.workbench.common.stunner.bpmn.definition.EndEscalationEvent) IntermediateConditionalEvent(org.kie.workbench.common.stunner.bpmn.definition.IntermediateConditionalEvent) View(org.kie.workbench.common.stunner.core.graph.content.view.View) StunnerTestingGraphAPI(org.kie.workbench.common.stunner.core.StunnerTestingGraphAPI) GraphUtils(org.kie.workbench.common.stunner.core.graph.util.GraphUtils) Bound(org.kie.workbench.common.stunner.core.graph.content.Bound) Assertions.assertDocumentation(org.kie.workbench.common.stunner.bpmn.backend.service.diagram.Assertions.assertDocumentation) Element(org.kie.workbench.common.stunner.core.graph.Element) IntermediateSignalEventThrowing(org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventThrowing) ReusableSubprocess(org.kie.workbench.common.stunner.bpmn.definition.ReusableSubprocess) Definitions(org.eclipse.bpmn2.Definitions) CancellingTimerEventExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.event.timer.CancellingTimerEventExecutionSet) BPMNDirectDiagramMarshaller(org.kie.workbench.common.stunner.bpmn.backend.BPMNDirectDiagramMarshaller) VariableDeclaration(org.kie.workbench.common.stunner.bpmn.backend.converters.customproperties.VariableDeclaration) Process(org.eclipse.bpmn2.Process) Iterator(java.util.Iterator) XMLEncoderDiagramMetadataMarshaller(org.kie.workbench.common.stunner.core.backend.service.XMLEncoderDiagramMetadataMarshaller) ParsedAssignmentsInfo(org.kie.workbench.common.stunner.bpmn.backend.converters.customproperties.ParsedAssignmentsInfo) Assert.assertNotNull(org.junit.Assert.assertNotNull) DataTypeCacheServer(org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.processes.DataTypeCacheServer) InclusiveGateway(org.kie.workbench.common.stunner.bpmn.definition.InclusiveGateway) StunnerTestingGraphBackendAPI(org.kie.workbench.common.stunner.core.backend.StunnerTestingGraphBackendAPI) Mockito.when(org.mockito.Mockito.when) AdHocSubprocessTaskExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.task.AdHocSubprocessTaskExecutionSet) Definition(org.kie.workbench.common.stunner.core.graph.content.definition.Definition) ViewConnector(org.kie.workbench.common.stunner.core.graph.content.view.ViewConnector) EventSubprocess(org.kie.workbench.common.stunner.bpmn.definition.EventSubprocess) StartEscalationEvent(org.kie.workbench.common.stunner.bpmn.definition.StartEscalationEvent) ProcessVariables(org.kie.workbench.common.stunner.bpmn.definition.property.variables.ProcessVariables) IntermediateMessageEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventCatching) DiscreteConnection(org.kie.workbench.common.stunner.core.graph.content.view.DiscreteConnection) EndNoneEvent(org.kie.workbench.common.stunner.bpmn.definition.EndNoneEvent) EventGateway(org.kie.workbench.common.stunner.bpmn.definition.EventGateway) Graph(org.kie.workbench.common.stunner.core.graph.Graph) ViewConnector(org.kie.workbench.common.stunner.core.graph.content.view.ViewConnector) SequenceFlow(org.kie.workbench.common.stunner.bpmn.definition.SequenceFlow) Metadata(org.kie.workbench.common.stunner.core.diagram.Metadata) Test(org.junit.Test)

Example 40 with SequenceFlow

use of org.eclipse.bpmn2.SequenceFlow in project kie-wb-common by kiegroup.

the class SequenceFlowPropertyReaderTest method getConnectionsWithWaypoints.

@Test
public void getConnectionsWithWaypoints() {
    TestDefinitionsWriter d = new TestDefinitionsWriter();
    PropertyReaderFactory factory = new PropertyReaderFactory(d.getDefinitionResolver());
    Bounds sourceBounds = boundsOf(10, 10, 50, 50);
    FlowNode source = d.mockNode(SOURCE_ID, sourceBounds);
    Bounds targetBounds = boundsOf(100, 100, 60, 60);
    FlowNode target = d.mockNode(TARGET_ID, targetBounds);
    Point sourcePoint = pointOf(10, 20);
    Point targetPoint = pointOf(100, 120);
    List<Point> waypoints = asList(sourcePoint, targetPoint);
    SequenceFlow el = d.sequenceFlowOf(SEQ_ID, source, target, waypoints);
    SequenceFlowPropertyReader p = factory.of(el);
    Connection sourceConnection = p.getSourceConnection();
    assertEquals(sourcePoint.getX() - sourceBounds.getX(), (float) sourceConnection.getLocation().getX(), 0);
    assertEquals(sourcePoint.getY() - sourceBounds.getY(), (float) sourceConnection.getLocation().getY(), 0);
    Connection targetConnection = p.getTargetConnection();
    assertEquals(targetPoint.getX() - targetBounds.getX(), (float) targetConnection.getLocation().getX(), 0);
    assertEquals(targetPoint.getY() - targetBounds.getY(), (float) targetConnection.getLocation().getY(), 0);
}
Also used : SequenceFlow(org.eclipse.bpmn2.SequenceFlow) Bounds(org.eclipse.dd.dc.Bounds) Connection(org.kie.workbench.common.stunner.core.graph.content.view.Connection) Point(org.eclipse.dd.dc.Point) TestDefinitionsWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.TestDefinitionsWriter) FlowNode(org.eclipse.bpmn2.FlowNode) Test(org.junit.Test)

Aggregations

SequenceFlow (org.eclipse.bpmn2.SequenceFlow)24 Test (org.junit.Test)20 Point (org.eclipse.dd.dc.Point)15 ArrayList (java.util.ArrayList)12 FlowElement (org.eclipse.bpmn2.FlowElement)12 Bounds (org.eclipse.dd.dc.Bounds)11 AdHocSubProcess (org.eclipse.bpmn2.AdHocSubProcess)10 FlowNode (org.eclipse.bpmn2.FlowNode)10 Process (org.eclipse.bpmn2.Process)10 SubProcess (org.eclipse.bpmn2.SubProcess)10 BPMNEdge (org.eclipse.bpmn2.di.BPMNEdge)10 RootElement (org.eclipse.bpmn2.RootElement)9 SequenceFlow (org.kie.workbench.common.stunner.bpmn.definition.SequenceFlow)7 List (java.util.List)6 DataInputAssociation (org.eclipse.bpmn2.DataInputAssociation)6 DataObject (org.eclipse.bpmn2.DataObject)6 DataOutputAssociation (org.eclipse.bpmn2.DataOutputAssociation)6 FeatureMap (org.eclipse.emf.ecore.util.FeatureMap)6 InclusiveGateway (org.eclipse.bpmn2.InclusiveGateway)5 ItemAwareElement (org.eclipse.bpmn2.ItemAwareElement)5