/**
 * Copyright 1996-2014 FoxBPM ORG.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * @author kenshin
 */
package org.foxbpm.kernel.process.impl;

import java.util.ArrayList;
import java.util.List;

import org.foxbpm.kernel.process.KernelLane;
import org.foxbpm.kernel.process.KernelLaneSet;

public class KernelLaneSetImpl extends KernelBaseElementImpl implements KernelLaneSet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public KernelLaneSetImpl(String id, KernelProcessDefinitionImpl processDefinition) {
		super(id, processDefinition);
	}

	protected List<KernelLane> lanes=new ArrayList<KernelLane>();

	public List<KernelLane> getLanes() {
		return lanes;
	}

	protected String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name=name;
	}
	
	public KernelLane getLaneForId(String id) {
	    if(lanes != null && lanes.size() > 0) {
	      for(KernelLane lane : lanes) {
	        if(id.equals(lane.getId())) {
	          return lane;
	        }
	      }
	    }
	    return null;
	  }

}

@@ -1529,16 +1529,283 @@
 n lane;%0A
+%09        %7Delse%7B%0A%09        %09if(lane.getChildLaneSet()!=null&&lane.getChildLaneSet().getLanes().size()%3E0)%7B%0A%09        %09%09KernelLane kernelLane=lane.getChildLaneSet().getLaneForId(id);%0A%09        %09%09if(kernelLane!=null)%7B%0A%09        %09%09%09return kernelLane;%0A%09        %09%09%7D%0A%09        %09%7D%0A
 %09       

修复了laneset上的查找子lane 的方法