Participant sourceParticipant = getParticipant(movedLane);
moveLane(movedLane, sourceParticipant, targetParticipant);
}
public void moveLane(Lane movedLane, Participant sourceParticipant, Participant targetParticipant) {
Process sourceProcess = getOrCreateProcess(sourceParticipant);
Process targetProcess = getOrCreateProcess(targetParticipant);
for (FlowNode node : movedLane.getFlowNodeRefs()) {
moveFlowNode(node, sourceProcess, targetProcess);
}
if (movedLane.getChildLaneSet() != null && !movedLane.getChildLaneSet().getLanes().isEmpty()) {
for (Lane lane : movedLane.getChildLaneSet().getLanes()) {