Package org.jbpm.task

Examples of org.jbpm.task.User


        TaskServiceSession taskSession = taskService.createSession() ;
        MockUserInfo userInfo = new MockUserInfo();
        taskService.setUserinfo( userInfo);
       
        for (String userName : getDefaultUsers()) {
            taskSession.addUser(new User(userName));
        }
       
        taskServer = new MinaTaskServer(taskService);
        Thread thread = new Thread(taskServer);
        thread.start();
View Full Code Here


    TaskServiceSession taskSession = taskService.createSession();
    MockUserInfo userInfo = new MockUserInfo();
    taskService.setUserinfo(userInfo);

    for (String userName : getDefaultUsers()) {
      taskSession.addUser(new User(userName));
    }

    taskServer = new MinaTaskServer(taskService);
    Thread thread = new Thread(taskServer);
    thread.start();
View Full Code Here

    emf = Persistence.createEntityManagerFactory("org.jbpm.task");
    taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());
    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

                        return taskSummary.getName();
                    case 1:
                        Status status = taskSummary.getStatus();
                        return status == null ? null : STATUSSES.get(status);
                    case 2:
                        User user = taskSummary.getActualOwner();
                        if (user == null) {
                            return null;
                        }
                        return user.getId();
                    case 3:
                        return DateFormat.getDateTimeInstance().format(
                            taskSummary.getCreatedOn());
                    case 4:
                        return taskSummary.getDescription();
View Full Code Here

        String actors = actorText.getText();
        PeopleAssignments assignments = new PeopleAssignments();
        String[] actorIds = actors.trim().split(",");
        List<OrganizationalEntity> potentialOwners = new ArrayList<OrganizationalEntity>();
        for (String id: actorIds) {
            User user = new User();
            user.setId(id.trim());
            potentialOwners.add(user);
        }
        assignments.setPotentialOwners(potentialOwners);

        List<OrganizationalEntity> businessAdministrators = new ArrayList<OrganizationalEntity>();
        businessAdministrators.add(new User("Administrator"));
        assignments.setBusinessAdministrators(businessAdministrators);
        task.setPeopleAssignments(assignments);

        ContentData content = null;
        String contentString = contentText.getText();
View Full Code Here

        //Create and Insert Threshold
        Threshold avgThreshold = new Threshold("AverageThreshold", 2, -1);
        ksession.insert(avgThreshold);
       
        //Insert User
        ksession.insert(new User("salaboy"));
        clock = ksession.getSessionClock();

        System.out.println(">>> Time "+clock.getCurrentTime());       
        ksession.getWorkingMemoryEntryPoint("water-events").insert(new WaterFlowingEvent(10.0));
        ksession.fireAllRules();
View Full Code Here

    private Task createTask() {
        Map<String, Object> vars = new HashMap();
        Map<String, User> users = new HashMap<String, User>();
        for (String user : taskServerDaemon.getDefaultUsers()) {
            users.put(user, new User(user));
        }

        vars.put("users", users);

        vars.put("now", new Date());
View Full Code Here

        TaskServiceSession taskSession = taskService.createSession() ;
        MockUserInfo userInfo = new MockUserInfo();
        taskService.setUserinfo( userInfo);
       
        for (String userName : getDefaultUsers()) {
            taskSession.addUser(new User(userName));
        }
       
        taskServer = new HornetQTaskServer(taskService, 5443);
        Thread thread = new Thread(taskServer);
        thread.start();
View Full Code Here


        Threshold avgThreshold = new Threshold("AverageThreshold", 20, -1);
        ksession.insert(new Average(1.0));
        thresholdFactHandle = ksession.insert(avgThreshold);
        ksession.insert(new User("salaboy"));

        final List updated = new ArrayList();

        final List removed = new ArrayList();
View Full Code Here

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed

        Map<String, Object> vars = new HashMap();
        Map<String, User> users = new HashMap<String, User>();
        for (String user : taskServerDaemon.getDefaultUsers()) {
            users.put(user, new User(user));
        }

        vars.put("users", users);

        vars.put("now", new Date());
View Full Code Here

TOP

Related Classes of org.jbpm.task.User

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.