use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.GatewayPropertyWriter in project kie-wb-common by kiegroup.
the class GatewayConverter method inclusive.
private PropertyWriter inclusive(Node<View<InclusiveGateway>, ?> n) {
org.eclipse.bpmn2.InclusiveGateway gateway = bpmn2.createInclusiveGateway();
GatewayPropertyWriter p = propertyWriterFactory.of(gateway);
gateway.setId(n.getUUID());
InclusiveGateway definition = n.getContent().getDefinition();
p.setGatewayDirection(n);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
GatewayExecutionSet executionSet = definition.getExecutionSet();
p.setDefaultRoute(executionSet.getDefaultRoute().getValue());
p.setBounds(n.getContent().getBounds());
return p;
}
use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.GatewayPropertyWriter in project kie-wb-common by kiegroup.
the class GatewayConverter method exclusive.
private PropertyWriter exclusive(Node<View<ExclusiveGateway>, ?> n) {
org.eclipse.bpmn2.ExclusiveGateway gateway = bpmn2.createExclusiveGateway();
GatewayPropertyWriter p = propertyWriterFactory.of(gateway);
gateway.setId(n.getUUID());
ExclusiveGateway definition = n.getContent().getDefinition();
p.setGatewayDirection(n);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
GatewayExecutionSet executionSet = definition.getExecutionSet();
p.setDefaultRoute(executionSet.getDefaultRoute().getValue());
p.setBounds(n.getContent().getBounds());
return p;
}
use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.GatewayPropertyWriter in project kie-wb-common by kiegroup.
the class GatewayConverter method parallel.
private PropertyWriter parallel(Node<View<ParallelGateway>, ?> n) {
org.eclipse.bpmn2.ParallelGateway gateway = bpmn2.createParallelGateway();
GatewayPropertyWriter p = propertyWriterFactory.of(gateway);
gateway.setId(n.getUUID());
ParallelGateway definition = n.getContent().getDefinition();
p.setGatewayDirection(n);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
p.setBounds(n.getContent().getBounds());
return p;
}
Aggregations