Hi Karthick,
The swimlane structure created at the initial rendering will be converted into the group node internally with its children as a string and added it into the model nodes collection. So please use getNode method to get the swimlane structure and then iterate the lanes to get the children in lane. Please refer to the code example below in which we have shown how to get the nodes from the lane. Also please refer to the playground link for more details.
Code example:
function getLaneChildren() {
var diagram = $("#diagram").ejDiagram("instance");
for (var i = 0; i < diagram.model.nodes.length; i++) {
var node = diagram.model.nodes[i];
if (node.isSwimlane) {
//to get the swimlane structure
var swimlane = diagram.getNode(node);
//iterate the lanes
for (var j = 0; j < swimlane.lanes.length; j++) {
var lane = swimlane.lanes[j];
//iterate the children in lane
for (k = 0; k < lane.children.length; k++) {
//get the children in lane
var child = lane.children[k];
}
}
}
}
}
Regards,
Shyam G