snaker-core/src/main/java/org/snaker/engine/core/TaskService.java
private void assignTask(String taskId, String... actorIds) {
		if(actorIds == null || actorIds.length == 0) return;
		for(String actorId : actorIds) {
			//修复当actorId为null的bug
			if(StringHelper.isEmpty(actorId)) continue;
			TaskActor taskActor = new TaskActor();
			taskActor.setTaskId(taskId);
			taskActor.setActorId(actorId);
			access().saveTaskActor(taskActor);
		}
	}
private void assignTask(String taskId, String... actorIds) {
		if(actorIds == null || actorIds.length == 0) return;
		for(String actorId : actorIds) {
			//修复当actorId为null的bug
			if(StringHelper.isEmpty(actorId)) continue;
			TaskActor taskActor = new TaskActor();
			taskActor.setTaskId(taskId);
			taskActor.setActorId(actorId);
			access().saveTaskActor(taskActor);
		}
	}
private void assignTask ( String taskId , String ... actorIds ) { if ( actorIds == null || actorIds . length == 0 ) return ; for ( String actorId : actorIds ) { //修复当actorId为null的bug if ( StringHelper . isEmpty ( actorId ) ) continue ; TaskActor taskActor = new TaskActor ( ) ; taskActor . setTaskId ( taskId ) ; taskActor . setActorId ( actorId ) ; access ( ) . saveTaskActor ( taskActor ) ; } }
对指定的任务分配参与者。参与者可以为用户、部门、角色
@param taskId 任务id
@param actorIds 参与者id集合
对指定的任务分配参与者。参与者可以为用户、部门、角色