org.jboss.drools.guvnor.importgenerator.utils
Class DroolsHelper
java.lang.Object
org.jboss.drools.guvnor.importgenerator.utils.DroolsHelper
public class DroolsHelper
- extends Object
drools helper class that provides functions to build drl and decision table to objects
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DroolsHelper
public DroolsHelper()
compileRuletoPKG
public static byte[] compileRuletoPKG(PackageFile file)
throws IOException,
org.drools.compiler.DroolsParserException
- returns an object byte array of a drl package file
- Parameters:
drlFile -
- Returns:
-
- Throws:
IOException
org.drools.compiler.DroolsParserException
compileDTabletoDRL
public static String compileDTabletoDRL(File file,
org.drools.decisiontable.InputType type)
throws FileNotFoundException
- compiles an xls or csv decision table into a rule (drl) language string
- Parameters:
file -
- Returns:
-
- Throws:
FileNotFoundException
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.