Package org.jbpm.identity

Examples of org.jbpm.identity.Group


      entity = (Entity) groups.iterator().next();
     
    } else if ( (term.startsWith("member("))
            && (term.endsWith(")")) ) {
      String role = term.substring(7,term.length()-1).trim();
      Group group = (Group) entity;
      entity = expressionSession.getUserByGroupAndRole(group.getName(), role);
      if (entity==null) {
        throw new ExpressionAssignmentException("no users in role '"+role+"'");
      }

    } else {
View Full Code Here


    Token token = executionContext.getToken();
    return executionContext.getContextInstance().getVariable(variableName, token);
  }

  protected Entity getGroupByName(String groupName) {
    Group group = null;
    group = expressionSession.getGroupByName(groupName);
    if (group==null) {
      throw new ExpressionAssignmentException("group '"+groupName+"' couldn't be fetched from the user db");
    }
    return group;
View Full Code Here

TOP

Related Classes of org.jbpm.identity.Group

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.