Examples of Deadline


Examples of de.danet.an.workflow.domain.Deadline

    + "FROM Deadline WHERE Activity = ? ORDER BY Entry";
      prepStmt = con.prepareStatement(selectStatement);
      prepStmt.setLong(1, pk.longValue());
      rs = prepStmt.executeQuery();
      while (rs.next()) {
    res.add (new Deadline
       (rs.getInt (3), JDBCUtil.getString(ds, rs, 1),
        rs.getString (2)));
      }
      return res;
  } finally {
View Full Code Here

Examples of de.danet.an.workflow.domain.Deadline

         + "DeadlineCond, ExceptionName, Execution, State) "
         + "VALUES (?, ?, ?, ?, ?, ?, ?)",
         new String[] {"Activity", "Entry"});
    int entry = 0;
    for (Iterator i = dls.iterator(); i.hasNext();) {
        Deadline dl = (Deadline)i.next ();
        int offset = 1;
        prepStmt.setLong(offset++, pk.longValue());
        prepStmt.setLong(offset++, ak.longValue());
        prepStmt.setInt(offset++, entry++);
        prepStmt.setLargeString(offset++, dl.getCondition());
        prepStmt.setString (offset++, dl.getExceptionName());
        prepStmt.setInt(offset++, dl.getExecution());
        prepStmt.setInt(offset++, dl.getState());
        prepStmt.executeUpdate();
    }
      }
  } finally {
      JDBCUtil.closeAll (null, prepStmt, null);
View Full Code Here

Examples of org.drools.task.Deadline

            return;
        }

        // get earliest start deadline
        List<Deadline> startDeadlines = task.getDeadlines().getStartDeadlines();
        Deadline start = null;
        for ( Deadline deadline : startDeadlines ) {
            if ( start == null || start.getDate().getTime() > deadline.getDate().getTime() ) {
                start = deadline;
            }
        }

        // get latest end deadline
        List<Deadline> endDeadlines = task.getDeadlines().getEndDeadlines();
        Deadline end = null;
        for ( Deadline deadline : endDeadlines ) {
            if ( end == null || end.getDate().getTime() < deadline.getDate().getTime() ) {
                end = deadline;
            }
        }

        String language = userInfo.getLanguageForEntity( owner );
        String name = I18NText.getLocalText( task.getNames(),
                                             language,
                                             defaultLanguage );
        String summary = I18NText.getLocalText( task.getSubjects(),
                                                language,
                                                defaultLanguage );
        String description = I18NText.getLocalText( task.getDescriptions(),
                                                    language,
                                                    defaultLanguage );
        // send ical for start
        if ( start != null ) {
            try {
                sendIcal( task.getId(),
                          name,
                          summary,
                          description,
                          task.getPriority(),
                          start.getDate(),
                          owner,
                          creator,
                          createdOn,
                          userInfo,
                          "Start" );
            } catch ( Exception e ) {

            }
        }

        // send ical for end
        if ( end != null ) {
            try {
                sendIcal( task.getId(),
                          name,
                          summary,
                          description,
                          task.getPriority(),
                          end.getDate(),
                          owner,
                          creator,
                          createdOn,
                          userInfo,
                          "End" );
View Full Code Here

Examples of org.drools.task.Deadline

   
    public static List<Deadline> readDeadlinesList(ObjectInput in) throws IOException, ClassNotFoundException  {
        int size = in.readInt();
        List<Deadline> list = new ArrayList<Deadline>(size);
        for ( int i = 0; i < size; i++ ) {
            Deadline item = new Deadline();
            item.readExternal( in );
            list.add( item );
        }
        return list;
    }   
View Full Code Here

Examples of org.drools.task.Deadline

            return;
        }

        // get earliest start deadline
        List<Deadline> startDeadlines = task.getDeadlines().getStartDeadlines();
        Deadline start = null;
        for ( Deadline deadline : startDeadlines ) {
            if ( start == null || start.getDate().getTime() > deadline.getDate().getTime() ) {
                start = deadline;
            }
        }

        // get latest end deadline
        List<Deadline> endDeadlines = task.getDeadlines().getEndDeadlines();
        Deadline end = null;
        for ( Deadline deadline : endDeadlines ) {
            if ( end == null || end.getDate().getTime() < deadline.getDate().getTime() ) {
                end = deadline;
            }
        }

        String language = userInfo.getLanguageForEntity( owner );
        String name = I18NText.getLocalText( task.getNames(),
                                             language,
                                             defaultLanguage );
        String summary = I18NText.getLocalText( task.getSubjects(),
                                                language,
                                                defaultLanguage );
        String description = I18NText.getLocalText( task.getDescriptions(),
                                                    language,
                                                    defaultLanguage );
        // send ical for start
        if ( start != null ) {
            try {
                sendIcal( task.getId(),
                          name,
                          summary,
                          description,
                          task.getPriority(),
                          start.getDate(),
                          owner,
                          creator,
                          createdOn,
                          userInfo,
                          "Start" );
            } catch ( Exception e ) {

            }
        }

        // send ical for end
        if ( end != null ) {
            try {
                sendIcal( task.getId(),
                          name,
                          summary,
                          description,
                          task.getPriority(),
                          end.getDate(),
                          owner,
                          creator,
                          createdOn,
                          userInfo,
                          "End" );
View Full Code Here

Examples of org.drools.task.Deadline

   
    public static List<Deadline> readDeadlinesList(ObjectInput in) throws IOException, ClassNotFoundException  {
        int size = in.readInt();
        List<Deadline> list = new ArrayList<Deadline>(size);
        for ( int i = 0; i < size; i++ ) {
            Deadline item = new Deadline();
            item.readExternal( in );
            list.add( item );
        }
        return list;
    }   
View Full Code Here

Examples of org.drools.task.Deadline

    public void executeEscalatedDeadline(long taskId,
                                         long deadlineId) {
        EntityManager localEm = emf.createEntityManager();
        Task task = localEm.find( Task.class,
                                  taskId );
        Deadline deadline = localEm.find( Deadline.class,
                                          deadlineId );

        if ( escalatedDeadlineHandler == null ) {
            escalatedDeadlineHandler = new DefaultEscalatedDeadlineHandler();
        }
View Full Code Here

Examples of org.drools.task.Deadline

            return;
        }

        // get earliest start deadline
        List<Deadline> startDeadlines = task.getDeadlines().getStartDeadlines();
        Deadline start = null;
        for ( Deadline deadline : startDeadlines ) {
            if ( start == null || start.getDate().getTime() > deadline.getDate().getTime() ) {
                start = deadline;
            }
        }

        // get latest end deadline
        List<Deadline> endDeadlines = task.getDeadlines().getEndDeadlines();
        Deadline end = null;
        for ( Deadline deadline : endDeadlines ) {
            if ( end == null || end.getDate().getTime() < deadline.getDate().getTime() ) {
                end = deadline;
            }
        }

        String language = userInfo.getLanguageForEntity( owner );
        String name = I18NText.getLocalText( task.getNames(),
                                             language,
                                             defaultLanguage );
        String summary = I18NText.getLocalText( task.getSubjects(),
                                                language,
                                                defaultLanguage );
        String description = I18NText.getLocalText( task.getDescriptions(),
                                                    language,
                                                    defaultLanguage );
        // send ical for start
        if ( start != null ) {
            try {
                sendIcal( task.getId(),
                          name,
                          summary,
                          description,
                          task.getPriority(),
                          start.getDate(),
                          owner,
                          creator,
                          createdOn,
                          userInfo,
                          "Start" );
            } catch ( Exception e ) {

            }
        }

        // send ical for end
        if ( end != null ) {
            try {
                sendIcal( task.getId(),
                          name,
                          summary,
                          description,
                          task.getPriority(),
                          end.getDate(),
                          owner,
                          creator,
                          createdOn,
                          userInfo,
                          "End" );
View Full Code Here

Examples of org.drools.task.Deadline

            return;
        }

        // get earliest start deadline
        List<Deadline> startDeadlines = task.getDeadlines().getStartDeadlines();
        Deadline start = null;
        for ( Deadline deadline : startDeadlines ) {
            if ( start == null || start.getDate().getTime() > deadline.getDate().getTime() ) {
                start = deadline;
            }
        }

        // get latest end deadline
        List<Deadline> endDeadlines = task.getDeadlines().getEndDeadlines();
        Deadline end = null;
        for ( Deadline deadline : endDeadlines ) {
            if ( end == null || end.getDate().getTime() < deadline.getDate().getTime() ) {
                end = deadline;
            }
        }

        String language = userInfo.getLanguageForEntity( owner );
        String name = I18NText.getLocalText( task.getNames(),
                                             language,
                                             defaultLanguage );
        String summary = I18NText.getLocalText( task.getSubjects(),
                                                language,
                                                defaultLanguage );
        String description = I18NText.getLocalText( task.getDescriptions(),
                                                    language,
                                                    defaultLanguage );
        // send ical for start
        if ( start != null ) {
            try {
                sendIcal( task.getId(),
                          name,
                          summary,
                          description,
                          task.getPriority(),
                          start.getDate(),
                          owner,
                          creator,
                          createdOn,
                          userInfo,
                          "Start" );
            } catch ( Exception e ) {

            }
        }

        // send ical for end
        if ( end != null ) {
            try {
                sendIcal( task.getId(),
                          name,
                          summary,
                          description,
                          task.getPriority(),
                          end.getDate(),
                          owner,
                          creator,
                          createdOn,
                          userInfo,
                          "End" );
View Full Code Here

Examples of org.enhydra.shark.xpdl.elements.Deadline

        return df;
    }

    public Deadline createXPDLObject(Deadlines dls, String type, boolean addToCollection) {
        Deadline dl = (Deadline) dls.generateNewElement();
        adjustType(dl, type);

        JaWETypes jts = JaWEManager.getInstance().getJaWEController().getJaWETypes();
        boolean hasTemplate = jts.hasTemplateId(type);
        if (hasTemplate) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.