Package org.huihoo.workflow.usermodel

Examples of org.huihoo.workflow.usermodel.WorkflowRole


    List users = new ArrayList();
    List roleIds = workflowActivity.getPerformers();
    int sizeRole = roleIds.size();
    for (int i = 0; i < sizeRole; ++i)
    {
      WorkflowRole role = (WorkflowRole) userDatabase.findRole((String) roleIds.get(i));
      Iterator userInterator = role.getParticipants();
      while (userInterator.hasNext())
      {
        WorkflowParticipant user = (WorkflowParticipant) userInterator.next();
        append2List(users, user);
      }
View Full Code Here


   */
  public WorkflowRole findRole(String roleid)
  {
    Connection conn = null;
    PreparedStatement pstmt = null;
    WorkflowRole role = null;

    String strSQL =
      "SELECT  vc_uuid,vc_name,vc_description "
        + " FROM "
        + getSchemaContext().getTableName(SchemaContext.SCHEMA_ROLE)
View Full Code Here

      for (int i = 1; i <= sizeUserRole; ++i)
      {
        jrs.absolute(i);
        String roleid = jrs.getString("vc_roleid");
        String userid = jrs.getString("vc_userid");
        WorkflowRole workflowRole = findRole(roleid);
        WorkflowParticipant workflowUser = findParticipant(userid);
        workflowRole.addPaticipant(workflowUser);
      }
      jrs.release();

    }
    catch (SQLException sqlex)
View Full Code Here

     * @param rolename   The role name of the new role
     * @param description The description of this role
     */
  public WorkflowRole createRole_impl(String roleid, String rolename, String description)
  {
    WorkflowRole role = new WorkflowRoleImpl_RT(this, roleid, rolename, description);

    return (role);
  }
View Full Code Here

     * @param rolename   The role name of the new role
     * @param description The description of this role
     */
  public WorkflowRole createRole(String roleid, String rolename, String description)
  {
    WorkflowRole role = new WorkflowRoleImpl(this, roleid, rolename, description);
    synchronized (roles)
    {
      roles.put(role.getUUID(), role);
    }
    return (role);
  }
View Full Code Here

     }

     Iterator roles = getRoles();
     while (roles.hasNext())
     {
      WorkflowRole role = (WorkflowRole) roles.next();
      role.removeParticipant(user);
     }
    
     Iterator depts = getDepartments();
     while (depts.hasNext())
     {
View Full Code Here

      for (int i = 1; i <= sizeUserRole; ++i)
      {
        jrs.absolute(i);
        String roleid = jrs.getString("vc_roleid");
        String userid = jrs.getString("vc_userid");
        WorkflowRole workflowRole = findRole(roleid);
        WorkflowParticipant workflowUser = findParticipant(userid);
        workflowRole.addPaticipant(workflowUser);
      }
      jrs.release();
     
    }
    catch (SQLException sqlex)
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.usermodel.WorkflowRole

Copyright © 2018 www.massapicom. 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.