use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.ScopedSignalEventExecutionSet in project kie-wb-common by kiegroup.
the class IntermediateSignalEventThrowingTest method testEquals.
@Test
public void testEquals() {
IntermediateSignalEventCatching compare1 = new IntermediateSignalEventCatching();
IntermediateSignalEventThrowing compare2 = new IntermediateSignalEventThrowing(general, backgroundSet, fontSet, dimensionSet, dataIOSet, advancedData, null);
ScopedSignalEventExecutionSet executionSet = new ScopedSignalEventExecutionSet();
executionSet.setSignalRef(new SignalRef("SignalRef"));
IntermediateSignalEventThrowing compare3 = new IntermediateSignalEventThrowing(general, backgroundSet, fontSet, dimensionSet, dataIOSet, advancedData, executionSet);
IntermediateSignalEventThrowing compare4 = new IntermediateSignalEventThrowing(general, backgroundSet, fontSet, dimensionSet, dataIOSet, advancedData, scopedSignalEventExecutionSet);
assertFalse(tested.equals(compare1));
assertFalse(tested.equals(compare2));
assertFalse(tested.equals(compare3));
assertTrue(tested.equals(compare4));
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.ScopedSignalEventExecutionSet in project kie-wb-common by kiegroup.
the class IntermediateThrowEventConverter method signalEvent.
protected PropertyWriter signalEvent(Node<View<IntermediateSignalEventThrowing>, ?> n) {
IntermediateThrowEvent event = bpmn2.createIntermediateThrowEvent();
event.setId(n.getUUID());
ThrowEventPropertyWriter p = propertyWriterFactory.of(event);
IntermediateSignalEventThrowing definition = n.getContent().getDefinition();
p.setAbsoluteBounds(n);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
p.setMetaData(definition.getAdvancedData().getMetaDataAttributes());
p.setAssignmentsInfo(definition.getDataIOSet().getAssignmentsinfo());
ScopedSignalEventExecutionSet executionSet = definition.getExecutionSet();
p.addSignal(executionSet.getSignalRef());
p.addSignalScope(executionSet.getSignalScope());
return p;
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.ScopedSignalEventExecutionSet in project kie-wb-common by kiegroup.
the class IntermediateThrowEventConverter method signalEvent.
protected BpmnNode signalEvent(IntermediateThrowEvent event) {
Node<View<IntermediateSignalEventThrowing>, Edge> node = factoryManager.newNode(event.getId(), IntermediateSignalEventThrowing.class);
IntermediateSignalEventThrowing definition = node.getContent().getDefinition();
EventPropertyReader p = propertyReaderFactory.of(event);
node.getContent().setBounds(p.getBounds());
definition.setGeneral(new BPMNGeneralSet(new Name(p.getName()), new Documentation(p.getDocumentation())));
definition.setAdvancedData(new AdvancedData(p.getMetaDataAttributes()));
definition.setDimensionsSet(p.getCircleDimensionSet());
definition.setFontSet(p.getFontSet());
definition.setBackgroundSet(p.getBackgroundSet());
definition.setDataIOSet(new DataIOSet(p.getAssignmentsInfo()));
definition.setExecutionSet(new ScopedSignalEventExecutionSet(new SignalRef(p.getSignalRef()), new SignalScope(p.getSignalScope())));
return BpmnNode.of(node, p);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.ScopedSignalEventExecutionSet in project kie-wb-common by kiegroup.
the class ProcessSignalRefProviderTest method mockEndSignalEventNode.
private Node mockEndSignalEventNode(String signalRefValue) {
EndSignalEvent event = new EndSignalEvent();
event.setExecutionSet(new ScopedSignalEventExecutionSet(new SignalRef(signalRefValue), new SignalScope()));
return mockNode(event);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.ScopedSignalEventExecutionSet in project kie-wb-common by kiegroup.
the class ProcessSignalRefProviderTest method mockIntermediateSignalEventThrowingNode.
private Node mockIntermediateSignalEventThrowingNode(String signalRefValue) {
IntermediateSignalEventThrowing event = new IntermediateSignalEventThrowing();
event.setExecutionSet(new ScopedSignalEventExecutionSet(new SignalRef(signalRefValue), new SignalScope()));
return mockNode(event);
}
Aggregations