snaker-quartz/src/main/java/org/snaker/engine/scheduling/quartz/ExecutorJob.java
public void exec(Process process, String orderId,
			String taskId, NodeModel nodeModel, Map<String, Object> data) 
			throws JobExecutionException {
		log.info("ExecutorJob execute taskId:{}", taskId);
		if(nodeModel == null || !(nodeModel instanceof TaskModel)) {
			log.debug("节点模型为空，或不是任务模型，则不满足执行条件");
			return;
		}
		TaskModel tm = (TaskModel)nodeModel;
		List<Task> tasks = null;
		if(StringHelper.isNotEmpty(tm.getAutoExecute()) 
				&& tm.getAutoExecute().equalsIgnoreCase("Y")) {
			tasks = engine.executeTask(taskId, SnakerEngine.AUTO, data);
			schedule().delete(IScheduler.TYPE_REMINDER + taskId);
		}
		callback(tm.getCallbackObject(), taskId, tasks);
	}
public void exec(Process process, String orderId,
			String taskId, NodeModel nodeModel, Map<String, Object> data) 
			throws JobExecutionException {
		log.info("ExecutorJob execute taskId:{}", taskId);
		if(nodeModel == null || !(nodeModel instanceof TaskModel)) {
			log.debug("节点模型为空，或不是任务模型，则不满足执行条件");
			return;
		}
		TaskModel tm = (TaskModel)nodeModel;
		List<Task> tasks = null;
		if(StringHelper.isNotEmpty(tm.getAutoExecute()) 
				&& tm.getAutoExecute().equalsIgnoreCase("Y")) {
			tasks = engine.executeTask(taskId, SnakerEngine.AUTO, data);
			schedule().delete(IScheduler.TYPE_REMINDER + taskId);
		}
		callback(tm.getCallbackObject(), taskId, tasks);
	}
public void exec ( Process process , String orderId , String taskId , NodeModel nodeModel , Map < String , Object > data ) throws JobExecutionException { log . info ( "ExecutorJob execute taskId:{}" , taskId ) ; if ( nodeModel == null || ! ( nodeModel instanceof TaskModel ) ) { log . debug ( "节点模型为空，或不是任务模型，则不满足执行条件"); return ; } TaskModel tm = ( TaskModel ) nodeModel ; List < Task > tasks = null ; if ( StringHelper . isNotEmpty ( tm . getAutoExecute ( ) ) && tm . getAutoExecute ( ) . equalsIgnoreCase ( "Y" ) ) { tasks = engine . executeTask ( taskId , SnakerEngine . AUTO , data ) ; schedule ( ) . delete ( IScheduler . TYPE_REMINDER + taskId ) ; } callback ( tm . getCallbackObject ( ) , taskId , tasks ) ; }
根据传递的执行参数，自动执行任务
根据传递的执行参数，自动执行任务