Package org.apache.agila.impl.memory

Examples of org.apache.agila.impl.memory.NotificationServiceImpl


    protected void setUp() throws Exception {
        super.setUp();
        TimerService ts = new TimerServiceImpl();
        TaskService tskServ = new TaskServiceImpl();
        NotificationService notifyService = new NotificationServiceImpl();

        node = new HelloWorldActivity();

        node.addBinding(new Binding("cheese", "edam", Binding.STATIC, true, true));
View Full Code Here




    public void testSimple() throws Exception {

        NotificationServiceImpl nsi = new NotificationServiceImpl();

        NotificationID id = nsi.notify(new UserID(1), "test message");

        assertTrue(id != null);
        assertTrue(id.getID() == 1);

        Notification impl =  nsi.getNotification(id);

        assertTrue(impl != null);
        assertTrue(impl instanceof NotificationImpl);
        assertTrue(impl.getMessage().equals("test message"));
        assertTrue(impl.getUserID().equals(new UserID(1)));
        assertTrue(impl.getStatus() == Notification.STATUS_ACTIVE);

        List l = nsi.getNotificationsForUser(new UserID(1));

        assertTrue(l != null);
        assertTrue(l.size() == 1);

    }
View Full Code Here

        tokenService = new TokenServiceImpl();
        eiSvc = new InstanceServiceImpl();
        graphManager = new BusinessProcessServiceImpl();
        taskService = new TaskServiceImpl();
        timerService = new TimerServiceImpl();
        notificationService = new NotificationServiceImpl();

        taskService.setTokenService(tokenService);

        impl = new MessageProcessor();
View Full Code Here

        impl.setTimerService(timerService);
        impl.setExecutionInstanceService(eiSvc);
        impl.setTokenService(tokenService);
        impl.setBusinessProcessService(graphManager);
        impl.setLogService(logger);
        impl.setNotificationService(new NotificationServiceImpl());

        QueueServiceImpl qs = new QueueServiceImpl(impl);

        timerService.setQueueService(qs);
View Full Code Here

        tokenService = new TokenServiceImpl();
        instanceService = new InstanceServiceImpl();
        businessProcessService = new BusinessProcessServiceImpl();
        taskService = new TaskServiceImpl();
        timerService = new TimerServiceImpl();
        notifyService = new NotificationServiceImpl();
        logger = new StdoutLogService();

        userService = new UserServiceImpl();

        //for temporary user to test user preference
View Full Code Here

        this.tokenService = new TokenServiceImpl();
        this.eiSvc = new InstanceServiceImpl();
        this.graphManager = new BusinessProcessServiceImpl();
        this.taskService = new TaskServiceImpl();
        this.timerService = new TimerServiceImpl();
        this.notifyService = new NotificationServiceImpl();

        this.userService = new UserServiceImpl();

        //for temporary user to test user preference
        UserInfo user = new UserInfo("user", "user", "user",false);
View Full Code Here

TOP

Related Classes of org.apache.agila.impl.memory.NotificationServiceImpl

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.