use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.CancellingSignalEventExecutionSet in project kie-wb-common by kiegroup.
the class IntermediateCatchEventConverter method signalEvent.
private BpmnNode signalEvent(CatchEvent event, SignalEventDefinition e) {
String nodeId = event.getId();
Node<View<IntermediateSignalEventCatching>, Edge> node = factoryManager.newNode(nodeId, IntermediateSignalEventCatching.class);
IntermediateSignalEventCatching definition = node.getContent().getDefinition();
EventPropertyReader p = propertyReaderFactory.of(event);
definition.setGeneral(new BPMNGeneralSet(new Name(p.getName()), new Documentation(p.getDocumentation())));
definition.setDataIOSet(new DataIOSet(p.getAssignmentsInfo()));
definition.setExecutionSet(new CancellingSignalEventExecutionSet(new CancelActivity(p.isCancelActivity()), new SignalRef(p.getSignalRef())));
node.getContent().setBounds(p.getBounds());
definition.setDimensionsSet(p.getCircleDimensionSet());
definition.setFontSet(p.getFontSet());
definition.setBackgroundSet(p.getBackgroundSet());
return BpmnNode.of(node);
}
use of org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.CancellingSignalEventExecutionSet in project kie-wb-common by kiegroup.
the class ProcessSignalRefProviderTest method mockIntermediateSignalEventCatchingNode.
private Node mockIntermediateSignalEventCatchingNode(String signalRefValue) {
IntermediateSignalEventCatching event = new IntermediateSignalEventCatching();
event.setExecutionSet(new CancellingSignalEventExecutionSet(new CancelActivity(true), new SignalRef(signalRefValue)));
return mockNode(event);
}
Aggregations