Search in sources :

Example 6 with LinkEventExecutionSet

use of org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet in project kie-wb-common by kiegroup.

the class ProcessLinkRefProviderTest method mockIntermediateLinkEventThrowingNode.

private Node mockIntermediateLinkEventThrowingNode(String linkRefValue) {
    IntermediateLinkEventThrowing event = new IntermediateLinkEventThrowing();
    event.setExecutionSet(new LinkEventExecutionSet(new LinkRef(linkRefValue)));
    return mockNode(event);
}
Also used : IntermediateLinkEventThrowing(org.kie.workbench.common.stunner.bpmn.definition.IntermediateLinkEventThrowing) LinkEventExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet) LinkRef(org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkRef)

Example 7 with LinkEventExecutionSet

use of org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet in project kie-wb-common by kiegroup.

the class ProcessLinkRefProviderTest method mockIntermediateLinkEventCatchingNode.

private Node mockIntermediateLinkEventCatchingNode(String linkRefValue) {
    IntermediateLinkEventCatching event = new IntermediateLinkEventCatching();
    event.setExecutionSet(new LinkEventExecutionSet(new LinkRef(linkRefValue)));
    return mockNode(event);
}
Also used : LinkEventExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet) IntermediateLinkEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateLinkEventCatching) LinkRef(org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkRef)

Example 8 with LinkEventExecutionSet

use of org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet in project kie-wb-common by kiegroup.

the class IntermediateThrowEventConverterTest method createIntermediateLinkEventThrowingNode.

private Node createIntermediateLinkEventThrowingNode() {
    LinkEventExecutionSet executionSet = new LinkEventExecutionSet(linkRef);
    IntermediateLinkEventThrowing eventThrowing = new IntermediateLinkEventThrowing(generalSet, mock(BackgroundSet.class), mock(FontSet.class), mock(CircleDimensionSet.class), dataIOSet, advancedData, executionSet);
    Node dockNode = mockNode();
    Node node = mockDockedNode(dockNode, eventThrowing);
    return node;
}
Also used : FontSet(org.kie.workbench.common.stunner.bpmn.definition.property.font.FontSet) IntermediateLinkEventThrowing(org.kie.workbench.common.stunner.bpmn.definition.IntermediateLinkEventThrowing) LinkEventExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet) BackgroundSet(org.kie.workbench.common.stunner.bpmn.definition.property.background.BackgroundSet) CircleDimensionSet(org.kie.workbench.common.stunner.bpmn.definition.property.dimensions.CircleDimensionSet) Node(org.kie.workbench.common.stunner.core.graph.Node)

Example 9 with LinkEventExecutionSet

use of org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet in project kie-wb-common by kiegroup.

the class HashCodeAndEqualityTest method testIntermediateLinkThrowingEventEquals.

@Test
public void testIntermediateLinkThrowingEventEquals() {
    IntermediateLinkEventThrowing linkEvent = new IntermediateLinkEventThrowing();
    IntermediateLinkEventThrowing linkEvent2 = new IntermediateLinkEventThrowing();
    assertNotEquals(linkEvent, null);
    assertNotEquals(linkEvent, "");
    assertEquals(linkEvent, linkEvent);
    assertEquals(linkEvent, linkEvent2);
    BackgroundSet backgroundSet = new BackgroundSet();
    backgroundSet.setBgColor(new BgColor("black"));
    linkEvent.setBackgroundSet(backgroundSet);
    assertNotEquals(linkEvent, linkEvent2);
    linkEvent2.setBackgroundSet(backgroundSet);
    assertEquals(linkEvent, linkEvent2);
    linkEvent.setBackgroundSet(backgroundSet);
    linkEvent.setExecutionSet(new LinkEventExecutionSet(new LinkRef("value")));
    assertNotEquals(linkEvent, linkEvent2);
}
Also used : LinkEventExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet) BackgroundSet(org.kie.workbench.common.stunner.bpmn.definition.property.background.BackgroundSet) BgColor(org.kie.workbench.common.stunner.bpmn.definition.property.background.BgColor) LinkRef(org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkRef) Test(org.junit.Test)

Example 10 with LinkEventExecutionSet

use of org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet in project kie-wb-common by kiegroup.

the class IntermediateCatchEventConverter method linkEvent.

protected PropertyWriter linkEvent(Node<View<IntermediateLinkEventCatching>, ?> n) {
    CatchEventPropertyWriter p = createCatchEventPropertyWriter(n);
    p.getFlowElement().setId(n.getUUID());
    p.setAbsoluteBounds(n);
    IntermediateLinkEventCatching definition = n.getContent().getDefinition();
    BPMNGeneralSet general = definition.getGeneral();
    p.setName(general.getName().getValue());
    p.setDocumentation(general.getDocumentation().getValue());
    p.setMetaData(definition.getAdvancedData().getMetaDataAttributes());
    p.setAssignmentsInfo(definition.getDataIOSet().getAssignmentsinfo());
    LinkEventExecutionSet executionSet = definition.getExecutionSet();
    p.addLink(executionSet.getLinkRef());
    return p;
}
Also used : LinkEventExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet) CatchEventPropertyWriter(org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.CatchEventPropertyWriter) IntermediateLinkEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateLinkEventCatching) BPMNGeneralSet(org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet)

Aggregations

LinkEventExecutionSet (org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkEventExecutionSet)11 LinkRef (org.kie.workbench.common.stunner.bpmn.definition.property.event.link.LinkRef)7 IntermediateLinkEventCatching (org.kie.workbench.common.stunner.bpmn.definition.IntermediateLinkEventCatching)4 IntermediateLinkEventThrowing (org.kie.workbench.common.stunner.bpmn.definition.IntermediateLinkEventThrowing)4 BackgroundSet (org.kie.workbench.common.stunner.bpmn.definition.property.background.BackgroundSet)4 BPMNGeneralSet (org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet)4 Test (org.junit.Test)3 BgColor (org.kie.workbench.common.stunner.bpmn.definition.property.background.BgColor)2 DataIOSet (org.kie.workbench.common.stunner.bpmn.definition.property.dataio.DataIOSet)2 CircleDimensionSet (org.kie.workbench.common.stunner.bpmn.definition.property.dimensions.CircleDimensionSet)2 FontSet (org.kie.workbench.common.stunner.bpmn.definition.property.font.FontSet)2 Documentation (org.kie.workbench.common.stunner.bpmn.definition.property.general.Documentation)2 Name (org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)2 AdvancedData (org.kie.workbench.common.stunner.bpmn.definition.property.variables.AdvancedData)2 Edge (org.kie.workbench.common.stunner.core.graph.Edge)2 Node (org.kie.workbench.common.stunner.core.graph.Node)2 View (org.kie.workbench.common.stunner.core.graph.content.view.View)2 IntermediateThrowEvent (org.eclipse.bpmn2.IntermediateThrowEvent)1 CatchEventPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.CatchEventPropertyWriter)1 ThrowEventPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.ThrowEventPropertyWriter)1