[jboss-user] [jBPM] New message: "Re: Decision table"

tamisier laure do-not-reply at jboss.com
Fri Feb 19 05:51:56 EST 2010


User development,

A new message was posted in the thread "Decision table":

http://community.jboss.org/message/527225#527225

Author  : tamisier laure
Profile : http://community.jboss.org/people/lauretamisier

Message:
--------------------------------------------------------------
In fact i have do it ... transform my decision table to a rule file .. is very simple :
 
InputStream stream = null;

        try {
            stream = new FileInputStream(file);

            SpreadsheetCompiler sCompiler = new SpreadsheetCompiler();

            String drl = sCompiler.compile(stream, InputType.XLS);

            File out = new File("toto.drl");

            PrintWriter pw = new PrintWriter(out);

            pw.append(drl);

            pw.close();

        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/527225#527225




More information about the jboss-user mailing list