use of org.eclipse.bpmn2.LaneSet in project kie-wb-common by kiegroup.
the class DIZorderComparator method isChildParent.
private boolean isChildParent(BaseElement parent, BaseElement child) {
LaneSet childLaneSet = ((Lane) parent).getChildLaneSet();
if (childLaneSet == null) {
return false;
}
List<Lane> lanes = childLaneSet.getLanes();
for (Lane lane : lanes) {
if (isParent(lane, child)) {
return true;
}
}
return false;
}
use of org.eclipse.bpmn2.LaneSet in project kie-wb-common by kiegroup.
the class AbstractProcessConverter method convertLaneSets.
private void convertLaneSets(List<LaneSet> laneSets, Map<String, BpmnNode> freeFloatingNodes, BpmnNode firstDiagramNode) {
laneSets.stream().flatMap(laneSet -> laneSet.getLanes().stream()).forEach(lane -> {
BpmnNode laneNode = converterFactory.laneConverter().convert(lane);
laneNode.setParent(firstDiagramNode);
lane.getFlowNodeRefs().forEach(node -> {
freeFloatingNodes.get(node.getId()).setParent(laneNode);
});
});
}
use of org.eclipse.bpmn2.LaneSet in project kie-wb-common by kiegroup.
the class SubProcessPropertyWriter method addLaneSet.
public void addLaneSet(List<LanePropertyWriter> lanes) {
if (lanes.isEmpty()) {
return;
}
LaneSet laneSet = bpmn2.createLaneSet();
List<org.eclipse.bpmn2.Lane> laneList = laneSet.getLanes();
lanes.forEach(l -> laneList.add(l.getElement()));
process.getLaneSets().add(laneSet);
lanes.forEach(l -> {
this.childElements.put(l.getElement().getId(), l);
});
}
Aggregations