Package org.apache.agila.engine

Examples of org.apache.agila.engine.TokenID


            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(
                result.getInt( "tokenid" ) ) );
            retVal.setTaskStatus( result.getInt( "status" ) );
            retVal.setInstanceID( new InstanceID(
                result.getInt( "instanceid" ) ) );
View Full Code Here


            statement.setBoolean( 5, true );

            statement.execute();
            statement.close();

            retVal = getTokenByID( new TokenID( tokenID ) );
        } catch( SQLException e ) {
            throw new RuntimeException( e );
        }
        finally {
            if (connection != null) {
View Full Code Here

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

            retVal = new TokenImpl();
            retVal.setTokenID( new TokenID( result.getInt( "tokenid" ) ) );
            retVal.setInstanceID( new InstanceID(
                result.getInt( "instanceid" ) ) );
            retVal.setCurrentNodeID(new NodeID(result.getInt("nodeid")));
            retVal.setCurrentState( result.getInt( "state" ) );
            retVal.setActive( result.getBoolean( "active" ) );
View Full Code Here

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

            retVal = new ArrayList();
            while( result.next() ) {
                retVal.add( getTokenByID( new TokenID(
                    result.getInt( "tokenid" ) ) ) );
            }

        } catch( SQLException e ) {
            throw new RuntimeException( e );
View Full Code Here

                if (line.startsWith("n ")) {
                    String s = line.substring("n ".length());

                    System.out.println("nudging token id = " + s);
                    engine.nudge(new TokenID(Integer.parseInt(s)));
                }
                else
                    if (line.startsWith("t")){
                        List l =  taskService.getTasksForUser(new UserID(1), Task.TASK_INCOMPLETE);
View Full Code Here

    private Integer currentNodeKey;
    private int currentState = PRE;
    private boolean active = true;

    public TokenID getTokenID() {
        return tokenKey != null ? new TokenID(tokenKey.intValue()) : null;
    }
View Full Code Here

    private  TokenImpl newToken() {

        TokenImpl token = new TokenImpl();

        token.setTokenID(new TokenID(++idCounter));

        saveToken(token);

        return token;
    }
View Full Code Here

        if (task == null) {
            return null;
        }

        TokenID tokenID = task.getSourceTokenID();
        Token token = tokenService.getTokenByID(tokenID);

        return token;
    }
View Full Code Here

            this.groupKey = new Integer(id.getID());
        }
    }

    public TokenID getSourceTokenID() {
        return sourceTokenKey != null ? new TokenID(sourceTokenKey.intValue()) : null;
    }
View Full Code Here

TOP

Related Classes of org.apache.agila.engine.TokenID

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.