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);
}
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);
}
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;
}
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);
}
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;
}
Aggregations