Package org.drools.task.service.TaskService

Examples of org.drools.task.service.TaskService.ScheduledTaskDeadline


        for (Deadline deadline : deadlines) {
            if (!deadline.isEscalated()) {
                // only escalate when true - typically this would only be true
                // if the user is requested that the notification should never be escalated
                Date date = deadline.getDate();
                service.schedule(new ScheduledTaskDeadline(taskId, deadline.getId(), service), date.getTime() - now);
            }
        }
    }
View Full Code Here


                for ( Deadline deadline : task.getDeadlines().getStartDeadlines() ) {
                    if ( !deadline.isEscalated() ) {
                        // only escalate when true - typically this would only be true
                        // if the user is requested that the notification should never be escalated
                        Date date = deadline.getDate();
                        service.schedule( new ScheduledTaskDeadline( task.getId(),
                                                                     deadline.getId(),
                                                                     service ),
                                          date.getTime() - now );
                    }
                }
            }

            if ( task.getDeadlines().getEndDeadlines() != null ) {
                for ( Deadline deadline : task.getDeadlines().getEndDeadlines() ) {
                    // only escalate when true - typically this would only be true
                    // if the user is requested that the notification should never be escalated
                    if ( !deadline.isEscalated() ) {
                        Date date = deadline.getDate();
                        service.schedule( new ScheduledTaskDeadline( task.getId(),
                                                                     deadline.getId(),
                                                                     service ),
                                          date.getTime() - now );
                    }
                }
View Full Code Here

        for (Deadline deadline : deadlines) {
            if (!deadline.isEscalated()) {
                // only escalate when true - typically this would only be true
                // if the user is requested that the notification should never be escalated
                Date date = deadline.getDate();
                service.schedule(new ScheduledTaskDeadline(taskId, deadline.getId(), service), date.getTime() - now);
            }
        }
    }
View Full Code Here

                for ( Deadline deadline : task.getDeadlines().getStartDeadlines() ) {
                    if ( !deadline.isEscalated() ) {
                        // only escalate when true - typically this would only be true
                        // if the user is requested that the notification should never be escalated
                        Date date = deadline.getDate();
                        service.schedule( new ScheduledTaskDeadline( task.getId(),
                                                                     deadline.getId(),
                                                                     service ),
                                          date.getTime() - now );
                    }
                }
            }

            if ( task.getDeadlines().getEndDeadlines() != null ) {
                for ( Deadline deadline : task.getDeadlines().getEndDeadlines() ) {
                    // only escalate when true - typically this would only be true
                    // if the user is requested that the notification should never be escalated
                    if ( !deadline.isEscalated() ) {
                        Date date = deadline.getDate();
                        service.schedule( new ScheduledTaskDeadline( task.getId(),
                                                                     deadline.getId(),
                                                                     service ),
                                          date.getTime() - now );
                    }
                }
View Full Code Here

        for (Deadline deadline : deadlines) {
            if (!deadline.isEscalated()) {
                // only escalate when true - typically this would only be true
                // if the user is requested that the notification should never be escalated
                Date date = deadline.getDate();
                service.schedule(new ScheduledTaskDeadline(taskId, deadline.getId(), service), date.getTime() - now);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.drools.task.service.TaskService.ScheduledTaskDeadline

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.