Search in sources :

Example 1 with BaseKnowledgeBuilderResultImpl

use of org.drools.drl.parser.BaseKnowledgeBuilderResultImpl in project drools by kiegroup.

the class PackageBuilderResults method writeExternal.

public void writeExternal(ObjectOutput out) throws IOException {
    if (!this.errors.getClass().getComponentType().equals(SerializableDroolsError.class)) {
        SerializableDroolsError[] temp = new SerializableDroolsError[this.errors.length];
        int i = 0;
        for (BaseKnowledgeBuilderResultImpl error : this.errors) {
            temp[i] = new SerializableDroolsError(error);
        }
        out.writeObject(temp);
    } else {
        out.writeObject(this.errors);
    }
}
Also used : BaseKnowledgeBuilderResultImpl(org.drools.drl.parser.BaseKnowledgeBuilderResultImpl)

Aggregations

BaseKnowledgeBuilderResultImpl (org.drools.drl.parser.BaseKnowledgeBuilderResultImpl)1