use of org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.LanePropertyWriter in project kie-wb-common by kiegroup.
the class LaneConverter method toElement.
public Result<LanePropertyWriter> toElement(Node<View<? extends BPMNViewDefinition>, ?> node) {
return NodeMatch.fromNode(BPMNViewDefinition.class, LanePropertyWriter.class).when(Lane.class, n -> {
org.eclipse.bpmn2.Lane lane = bpmn2.createLane();
lane.setId(n.getUUID());
LanePropertyWriter p = propertyWriterFactory.of(lane);
Lane definition = n.getContent().getDefinition();
BPMNGeneralSet general = definition.getGeneral();
lane.setName(general.getName().getValue());
p.setDocumentation(general.getName().getValue());
p.setBounds(n.getContent().getBounds());
return p;
}).ignore(Object.class).apply(node);
}
Aggregations