public ArrayList<Conditional> getRuleCondition(int id)
    {
        ArrayList<Conditional> cond = new ArrayList();
        try{
            stat.setQueryTimeout(30);
            ResultSet rs = stat.executeQuery("SELECT * FROM Condition Where RuleId ="+id+";");
            
            while(rs.next())
            {
                boolean b = rs.getInt("NotFlag") ==1 ? true : false ;
                cond.add(new Conditional(ARKS.Facts.get(rs.getInt("FactId")-1),b));
            }
            
        }catch(Exception e){
            System.out.println("Getting Rule Conditions Failed");
            System.out.println(e.getMessage());
        }
        
        return cond;
    }