Examples of ProcessLoadError


Examples of org.drools.compiler.ProcessLoadError

                for (Process process : processes) {
                    buildProcess(process, resource);
                }
            } else {
                // @TODO could we maybe add something a bit more informative about what is wrong with the XML ?
                this.errors.add( new ProcessLoadError( "unable to parse xml", null ) );
            }
        } catch ( FactoryConfigurationError e1 ) {
            this.errors.add( new ProcessLoadError( "FactoryConfigurationError ", e1.getException()) );
        } catch ( Exception e2 ) {
          e2.printStackTrace();
            this.errors.add( new ProcessLoadError( "unable to parse xml", e2 ) );
        } finally {
            Thread.currentThread().setContextClassLoader( oldLoader );
        }
        reader.close();
        return this.errors;
View Full Code Here

Examples of org.drools.compiler.compiler.ProcessLoadError

            }
        } catch (Exception e) {
            if (e instanceof RuntimeException) {
                throw (RuntimeException) e;
            }
            addBuilderResult(new ProcessLoadError(resource, "Unable to load process.", e));
        }
        this.results = getResults(this.results);
        this.resource = null;
    }
View Full Code Here

Examples of org.drools.compiler.compiler.ProcessLoadError

            }
        } catch (Exception e) {
            if (e instanceof RuntimeException) {
                throw (RuntimeException) e;
            }
            addBuilderResult(new ProcessLoadError(resource, "Unable to load process.", e));
        }
        this.results = getResults(this.results);
        this.resource = null;
    }
View Full Code Here

Examples of org.drools.compiler.compiler.ProcessLoadError

            processBuilder.getErrors().clear();
        } catch (Exception e) {
            if (e instanceof RuntimeException) {
                throw (RuntimeException) e;
            }
            addBuilderResult(new ProcessLoadError(resource, "Unable to load process.", e));
        }
        this.results = getResults(this.results);
        this.resource = null;
    }
View Full Code Here

Examples of org.drools.compiler.compiler.ProcessLoadError

public class RuleFlowErrorTest {

    @Test
    public void testError() {
        ProcessLoadError err = new ProcessLoadError(null, "XXX", null);
        assertEquals("XXX", err.getMessage());
       
        Exception e = new RuntimeException("Q");
        err = new ProcessLoadError(null, "X", e);
       
        assertNotNull(err.getMessage());
       
        assertTrue(err instanceof DroolsError);
       
    }
View Full Code Here

Examples of org.drools.compiler.compiler.ProcessLoadError

            processBuilder.getErrors().clear();
        } catch (Exception e) {
            if (e instanceof RuntimeException) {
                throw (RuntimeException) e;
            }
            addBuilderResult(new ProcessLoadError(resource, "Unable to load process.", e));
        }
        this.results = getResults(this.results);
        this.resource = null;
    }
View Full Code Here

Examples of org.drools.compiler.compiler.ProcessLoadError

            processBuilder.getErrors().clear();
        } catch (Exception e) {
            if (e instanceof RuntimeException) {
                throw (RuntimeException) e;
            }
            addBuilderResult(new ProcessLoadError(resource, "Unable to load process.", e));
        }
        this.results = getResults(this.results);
        this.resource = null;
    }
View Full Code Here

Examples of org.drools.compiler.compiler.ProcessLoadError

            processBuilder.getErrors().clear();
        } catch (Exception e) {
            if (e instanceof RuntimeException) {
                throw (RuntimeException) e;
            }
            addBuilderResult(new ProcessLoadError(resource, "Unable to load process.", e));
        }
        this.results = getResults(this.results);
        this.resource = null;
    }
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.