BaseElement parentElement, Map<String, JsonNode> shapeMap,Map<String, List<JsonNode>> sourceAndTargetMap,Definitions model) {
for (JsonNode shapeNode : shapesArrayNode) {
String stencilId = BpmnJsonConverterUtil.getStencilId(shapeNode);
//先处理lane,lane中会包含child元素
if(STENCIL_LANE.equals(stencilId)){
Lane lane = Bpmn2Factory.eINSTANCE.createLane();
String override = BpmnJsonConverterUtil.getElementId(shapeNode);
String laneNameString = JsonConverterUtil.getPropertyValueAsString(PROPERTY_NAME, shapeNode);
lane.setId(override);
lane.setName(laneNameString);
if(parentElement instanceof Lane){
Lane parentLane = ((Lane)parentElement);
if(parentLane.getChildLaneSet() == null){
LaneSet laneSet = Bpmn2Factory.eINSTANCE.createLaneSet();
laneSet.getLanes().add(lane);
parentLane.setChildLaneSet(laneSet);
}else{
parentLane.getChildLaneSet().getLanes().add(lane);
}
}else if(parentElement instanceof Process){
Process process = (Process)parentElement;
if(process.getLaneSets().size() >0){
process.getLaneSets().get(0).getLanes().add(lane);