snaker-core/src/main/java/org/snaker/engine/impl/LogInterceptor.java
public void intercept(Execution execution) {
		if(log.isInfoEnabled()) {
			for(Task task : execution.getTasks()) {
				StringBuffer buffer = new StringBuffer(100);
				buffer.append("创建任务[标识=").append(task.getId());
				buffer.append(",名称=").append(task.getDisplayName());
				buffer.append(",创建时间=").append(task.getCreateTime());
				buffer.append(",参与者={");
				if(task.getActorIds() != null) {
					for(String actor : task.getActorIds()) {
						buffer.append(actor).append(";");
					}
				}
				buffer.append("}]");
				log.info(buffer.toString());
			}
		}
	}
public void intercept(Execution execution) {
		if(log.isInfoEnabled()) {
			for(Task task : execution.getTasks()) {
				StringBuffer buffer = new StringBuffer(100);
				buffer.append("创建任务[标识=").append(task.getId());
				buffer.append(",名称=").append(task.getDisplayName());
				buffer.append(",创建时间=").append(task.getCreateTime());
				buffer.append(",参与者={");
				if(task.getActorIds() != null) {
					for(String actor : task.getActorIds()) {
						buffer.append(actor).append(";");
					}
				}
				buffer.append("}]");
				log.info(buffer.toString());
			}
		}
	}
public void intercept ( Execution execution ) { if ( log . isInfoEnabled ( ) ) { for ( Task task : execution . getTasks ( ) ) { StringBuffer buffer = new StringBuffer ( 100 ) ; buffer . append ( "创建任务[标识=").append(tas k . getId( ) ); buffer . append ( ",名称=").ap p e nd(tas k .get D isplayName()); buffer . append ( ",创建时间=").append ( t ask.ge t Crea t eTime()); buffer . append ( ",参与者={"); if ( task . getActorIds ( ) != null ) { for ( String actor : task . getActorIds ( ) ) { buffer . append ( actor ) . append ( ";" ) ; } } buffer . append ( "}]" ) ; log . info ( buffer . toString ( ) ) ; } } }
拦截产生的任务对象，打印日志
拦截产生的任务对象，打印日志