Package com.founder.fix.fixflow.expand.actorconnector.InitiatorActorConnector

Source Code of com.founder.fix.fixflow.expand.actorconnector.InitiatorActorConnector.InitiatorActorConnector

package com.founder.fix.fixflow.expand.actorconnector.InitiatorActorConnector;


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.runtime.ExecutionContext;

public class InitiatorActorConnector implements ActorConnectorHandler {

  /**
  * 获取用户类型处理者
  * @param executionContext 流程上下文
  * @return
  */
  public List<UserTo> UserExecute(ExecutionContext executionContext) {
    List<UserTo> userTos = new ArrayList<UserTo>();
    //获取发起人
    String initiator=executionContext.getInitiator();
    UserTo userTo = new UserTo(initiator);
    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;
  }

}
TOP

Related Classes of com.founder.fix.fixflow.expand.actorconnector.InitiatorActorConnector.InitiatorActorConnector

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.