Package org.apache.agila.services.task

Examples of org.apache.agila.services.task.TaskID


            ResultSet result = statement.executeQuery( sql );
            result.next();

            retVal = new TaskImpl();

            retVal.setTaskID( new TaskID( result.getInt( "ID" ) ) );
            retVal.setUserID( new UserID( result.getInt( "userid" ) ) );
            retVal.setTeamID( new GroupID( result.getInt( "groupid" ) ) );
            retVal.setTaskDescription( result.getString( "description" ) );
            retVal.setTaskExpirationDate( result.getDate( "expiration" ) );
            retVal.setSourceTokenID( new TokenID(
View Full Code Here


            Statement statement = connection.createStatement();
            ResultSet result = statement.executeQuery( sql );

            retVal = new ArrayList();
            while( result.next() ) {
                retVal.add( getTaskByID( new TaskID(
                    result.getInt( "ID" ) ) ) );
            }
        } catch( SQLException e ) {
            throw new RuntimeException( e );
        }
View Full Code Here

            Statement statement = connection.createStatement();
            ResultSet result = statement.executeQuery( sql );

            retVal = new ArrayList();
            while( result.next() ) {
                retVal.add( getTaskByID( new TaskID(
                    result.getInt( "ID" ) ) ) );
            }
        } catch( SQLException e ) {
            throw new RuntimeException( e );
        }
View Full Code Here

                Statement statement = connection.createStatement();
                ResultSet result = statement.executeQuery( sql );

                while( result.next() ) {
                    retVal.add( getTaskByID( new TaskID(
                        result.getInt( "ID" ) ) ) );
                }
            } catch( SQLException e ) {
                throw new RuntimeException( e );
            }
View Full Code Here

        renderTemplate(req, res, ctx, "startedprocess.vm");
    }

    public void nudge_from_task(HttpServletRequest req, HttpServletResponse res, VelocityContext ctx) throws ServletException, IOException {

        Task t = taskService.getTaskByID(new TaskID(Integer.parseInt(req.getParameter("taskid"))));

        engine.nudge(t.getSourceTokenID());

        taskService.setTaskStatus(t.getTaskID(), Task.TASK_INCOMPLETE);
        show_task_list(req,res, ctx);
View Full Code Here

            if (index == -1)
                throw new Error("Task should exist");

            taskList.set( index, ti );
        } else { // Add mode
            TaskID tid = new TaskID( ++id );
            ti.setTaskID( tid );

            taskList.add( ti );
        }
       
View Full Code Here

TOP

Related Classes of org.apache.agila.services.task.TaskID

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.