Package org.drools.process.command

Source Code of org.drools.process.command.GetKnowledgeBaseCommand

package org.drools.process.command;

import org.drools.KnowledgeBase;
import org.drools.RuleBase;
import org.drools.impl.KnowledgeBaseImpl;
import org.drools.reteoo.ReteooWorkingMemory;

public class GetKnowledgeBaseCommand
    implements
    Command<KnowledgeBase> {

    public GetKnowledgeBaseCommand() {
    }

    public KnowledgeBase execute(ReteooWorkingMemory session) {
        RuleBase ruleBase = session.getRuleBase();

        return new KnowledgeBaseImpl( ruleBase );
    }

    public String toString() {
        return "session.getRuleBase();";
    }

}
TOP

Related Classes of org.drools.process.command.GetKnowledgeBaseCommand

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.