Package org.jbpm.task

Examples of org.jbpm.task.Group


   
        String groupId = (String) workItem.getParameter("GroupId");
    if (groupId != null && groupId.trim().length() > 0) {
      String[] groupIds = groupId.split(",");
      for (String id: groupIds) {
        potentialOwners.add(new Group(id.trim()));
      }
    }

        assignments.setPotentialOwners(potentialOwners);
    List<OrganizationalEntity> businessAdministrators = new ArrayList<OrganizationalEntity>();
View Full Code Here


            if ( type == 0 ) {
                User user = new User();
                user.readExternal( in );
                list.add( user );
            } else {
                Group group = new Group();
                group.readExternal( in );
                list.add( group );
            }
        }
        return list;
    }   
View Full Code Here

    for (int i = 0; i < 10; i++) {
      User user = new User("usr" + i);
      localTaskServiceSession.addUser(user);
    }
    for (int j = 0; j < 3; j++) {
      localTaskServiceSession.addGroup(new Group("grp" + j));
    }

      Properties serverProperties = new Properties();
    serverProperties.setProperty("JMSTaskServer.connectionFactory", "ConnectionFactory");
    serverProperties.setProperty("JMSTaskServer.transacted", "true");
View Full Code Here

    taskSession = taskService.createSession();

    // now register new user and group for test.
    taskSession.addUser(new User("Administrator"));
    taskSession.addUser(new User("mary"));
    taskSession.addGroup(new Group("HR"));
  }
View Full Code Here

TOP

Related Classes of org.jbpm.task.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.