use of org.kie.workbench.common.stunner.bpmn.definition.property.gateway.DefaultRoute in project kie-wb-common by kiegroup.
the class GatewayConverter method inclusiveGateway.
private BpmnNode inclusiveGateway(Gateway gateway) {
Node<View<InclusiveGateway>, Edge> node = factoryManager.newNode(gateway.getId(), InclusiveGateway.class);
InclusiveGateway definition = node.getContent().getDefinition();
GatewayPropertyReader p = propertyReaderFactory.of(gateway);
definition.setGeneral(new BPMNGeneralSet(new Name(p.getName()), new Documentation(p.getDocumentation())));
definition.setExecutionSet(new GatewayExecutionSet(new DefaultRoute(p.getDefaultRoute())));
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.gateway.DefaultRoute in project kie-wb-common by kiegroup.
the class GatewayConverter method exclusiveGateway.
private BpmnNode exclusiveGateway(Gateway gateway) {
Node<View<ExclusiveGateway>, Edge> node = factoryManager.newNode(gateway.getId(), ExclusiveGateway.class);
ExclusiveGateway definition = node.getContent().getDefinition();
GatewayPropertyReader p = propertyReaderFactory.of(gateway);
definition.setGeneral(new BPMNGeneralSet(new Name(p.getName()), new Documentation(p.getDocumentation())));
definition.setExecutionSet(new GatewayExecutionSet(new DefaultRoute(p.getDefaultRoute())));
node.getContent().setBounds(p.getBounds());
definition.setDimensionsSet(p.getCircleDimensionSet());
definition.setFontSet(p.getFontSet());
definition.setBackgroundSet(p.getBackgroundSet());
return BpmnNode.of(node);
}
Aggregations