snaker-core/src/main/java/org/snaker/engine/handlers/impl/CreateTaskHandler.java
public void handle(Execution execution) {
		List<Task> tasks = execution.getEngine().task().createTask(model, execution);
		execution.addTasks(tasks);
		/**
		 * 从服务上下文中查找任务拦截器列表，依次对task集合进行拦截处理
		 */
		List<SnakerInterceptor> interceptors = ServiceContext.getContext().findList(SnakerInterceptor.class);
		try {
			for(SnakerInterceptor interceptor : interceptors) {
				interceptor.intercept(execution);
			}
		} catch(Exception e) {
			log.error("拦截器执行失败=" + e.getMessage());
			throw new SnakerException(e);
		}
	}
public void handle(Execution execution) {
		List<Task> tasks = execution.getEngine().task().createTask(model, execution);
		execution.addTasks(tasks);
		/**
		 * 从服务上下文中查找任务拦截器列表，依次对task集合进行拦截处理
		 */
		List<SnakerInterceptor> interceptors = ServiceContext.getContext().findList(SnakerInterceptor.class);
		try {
			for(SnakerInterceptor interceptor : interceptors) {
				interceptor.intercept(execution);
			}
		} catch(Exception e) {
			log.error("拦截器执行失败=" + e.getMessage());
			throw new SnakerException(e);
		}
	}
public void handle ( Execution execution ) { List < Task > tasks = execution . getEngine ( ) . task ( ) . createTask ( model , execution ) ; execution . addTasks ( tasks ) ; /**
		 * 从服务上下文中查找任务拦截器列表，依次对task集合进行拦截处理
		 */ List < SnakerInterceptor > interceptors = ServiceContext . getContext ( ) . findList ( SnakerInterceptor . class ) ; try { for ( SnakerInterceptor interceptor : interceptors ) { interceptor . intercept ( execution ) ; } } catch ( Exception e ) { log . error ( "拦截器执行失败=" + e.getMessag ( ) ; throw new SnakerException ( e ) ; } }
根据任务模型、执行对象，创建下一个任务，并添加到execution对象的tasks集合中
根据任务模型、执行对象，创建下一个任务，并添加到execution对象的tasks集合中