org.jboss.drools.guvnor.importgenerator.utils
Class DroolsHelper

java.lang.Object
  extended by 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


Constructor Summary
DroolsHelper()
           
 
Method Summary
static String compileDTabletoDRL(File file, org.drools.decisiontable.InputType type)
          compiles an xls or csv decision table into a rule (drl) language string
static byte[] compileRuletoPKG(PackageFile file)
          returns an object byte array of a drl package file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DroolsHelper

public DroolsHelper()
Method Detail

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.