package com.founder.fix.fixflow.expand.actorconnector.SelectUserActorConnector;
import java.util.*;
import com.founder.fix.fixflow.core.connector.ActorConnectorHandler;
import com.founder.fix.fixflow.core.impl.identity.GroupTo;
import com.founder.fix.fixflow.core.impl.identity.UserTo;
import com.founder.fix.fixflow.core.impl.util.AssigneeUtil;
import com.founder.fix.fixflow.core.runtime.ExecutionContext;
public class SelectUserActorConnector implements ActorConnectorHandler {
private java.lang.Object userId;
/**
* 获取用户类型处理者
* @param executionContext 流程上下文
* @return
*/
public List<UserTo> UserExecute(ExecutionContext executionContext) {
List<UserTo> userTos = new ArrayList<UserTo>();
List<String> userList=AssigneeUtil.executionExpressionObj(userId, executionContext);
for (String userId : userList) {
UserTo userTo = new UserTo(userId);
userTos.add(userTo);
}
return userTos;
}
/**
* 获取组类型处理者
* @param executionContext 流程上下文
* @return
*/
public List<GroupTo> GroupExecute(ExecutionContext executionContext) {
List<GroupTo> groupTos = new ArrayList<GroupTo>();
//加入Group GroupTo groupTo = new GroupTo("组编号", "组类型");
return groupTos;
}
public void setUserId(java.lang.Object userId){
this.userId = userId;
}
}