Package org.drools.repository

Examples of org.drools.repository.RulesRepositoryException


          .toByteArray()));

      item.checkin("Updated " + fileName);

    } catch (IOException e) {
      throw new RulesRepositoryException(e);
    } finally {
      if (jis != null) {
        jis.close();
      }
      jos.close();
View Full Code Here


                    }
                }

            }
        } catch ( IOException e ) {
            throw new RulesRepositoryException( e );
        }
    return loader;
  }
View Full Code Here

                            err.recordError( item, "Line " + e.getLine() + " : " + e.getMessage() );
                        }
                    }

                } catch ( IOException e ) {
                    throw new RulesRepositoryException(e);
                }
            }

        }
View Full Code Here

            if ( item.getBinaryContentAttachment() != null ) {
                try {
                    result.add( new JarInputStream( item.getBinaryContentAttachment(),
                                                    false ) );
                } catch ( IOException e ) {
                    throw new RulesRepositoryException(e);
                }
            }
        }
        return result;
    }
View Full Code Here

        try {
            Properties ps = loadConfProperties(pkg);
            ps.setProperty( DefaultPackageNameOption.PROPERTY_NAME, this.pkg.getName() );
            builder = BRMSPackageBuilder.getInstance(BRMSPackageBuilder.getJars(pkg), ps);
        } catch (IOException e) {
            throw new RulesRepositoryException("Unable to load configuration properties for package.", e);           
        }
  }
View Full Code Here

          this.recordBuilderErrors(asset);
          // clear the errors, so we don't double report.
          builder.clearErrors();
        }
      } catch (DroolsParserException e) {
        throw new RulesRepositoryException(e);
      } catch (IOException e) {
        throw new RulesRepositoryException(e);
      }
    }
  }
View Full Code Here

      return;
    }
    try {
      builder.addPackageFromDrl(new StringReader(drl));
    } catch (DroolsParserException e) {
      throw new RulesRepositoryException(
          "Unexpected error when parsing package.", e);
    } catch (IOException e) {
      throw new RulesRepositoryException(
          "IO Exception occurred when parsing package.", e);
    }
  }
View Full Code Here

                Identity.instance().checkPermission( new PackageUUIDType( item.getPackage().getUUID() ),
                                                     RoleTypes.PACKAGE_DEVELOPER );
            }

            if ( item.getPackage().isArchived() ) {
                throw new RulesRepositoryException( "The package [" + item.getPackageName() + "] that asset [" + item.getName() + "] belongs to is archived. You need to unarchive it first." );
            }

            log.info( "USER:" + getCurrentUserName() + " ARCHIVING asset: [" + item.getName() + "] UUID: [" + item.getUUID() + "] " );

            try {
View Full Code Here

                } else {
                    row[i] = val.toString();
                }
            } catch ( Exception e ) {                   
                if ( e instanceof RuntimeException ) throw (RuntimeException) e;
                throw new RulesRepositoryException( e );
            }
        }
        return row;
    }
View Full Code Here

            }
        } catch ( Exception e ) {
            if ( e instanceof RuntimeException ) {
                throw (RuntimeException) e;
            }
            throw new RulesRepositoryException( e );
        } finally {
            closeStream( reader );
        }
        headers = fields.toArray( new String[fields.size()] );
        headerTypes = fieldTypes.toArray( new String[fieldTypes.size()] );
View Full Code Here

TOP

Related Classes of org.drools.repository.RulesRepositoryException

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.