Help

This is a small thing that I ran into when writing Decision Tables using OpenOffice:

Let's say in a CONDITION column you want to write the following pattern:

section : Section(type == "$param") from company.sectionList

If you type this into the column (without cut/paste) it will look like:

section : Section(type == “$param”) from company.sectionList 

The difference here is the double quotes generated by OpenOffice. If you do not change all of them and try to load your Decision Table with for example:

KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
DecisionTableConfiguration config = KnowledgeBuilderFactory.newDecisionTableConfiguration();
config.setInputType(DecisionTableInputType.XLS);
kbuilder.add(ResourceFactory.newClassPathResource("mydecisiontable.xls"), ResourceType.DTABLE, config);
.....

you will get the following type of exception:

[8,29]: [ERR 101] Line 8:29 no viable alternative at input ''
[8,39]: [ERR 101] Line 8:39 no viable alternative at input ''
[9,29]: [ERR 101] Line 9:29 no viable alternative at input ''
[9,37]: [ERR 101] Line 9:37 no viable alternative at input '' 

...just something small to consider when debugging your Drools Decision Tables. Note that Decision Table support was added to Seam since 2.2.0.CR1

11 comments:
 
28. Apr 2010, 17:55 CET | Link
Mike

Thanks! Saved me from going crazy.

 
21. Jun 2012, 03:26 CET | Link
Toshiya
I've just found that the auto correction can be disabled with [Tools]->[Auto Correct Options] -> [Localized Options] in LibreOffice :)
 
30. Aug 2014, 03:55 CET | Link
polo

Best friend successive good years, Gucci Shoes Factory, winter spent in Sanya, Monster Beats Outlet, so winter home, seems to be nowhere in sight, North Jackets Outlet, both a little rusty, Nike Air Max Shoes, but also very cordial, Burberry Outlet Online, forward to tonight, feather-like snow, MCM Bags Outlet, drifts underground, Coach Black Friday, looking at that the floc, Louis Vuitton Outlet, fly like snow Ling, Michael Kors Outlet Online, eloquent, Polo Outlet Online, flying in the sky, Cheap Canada Goose, limp walk downs, strange things, Marc Jacobs Outlet Online, I float thinking lianpian, North Outlet Online, poetic heart wenqing, not help surging surging, Coach Factory Outlet, so I borrowed the winter, Ralph Lauren UK, snows research ink, Longchamp Sacs Sortie, into the mind of inactivity, Michael Kors Outlet, the white snow everywhere, Monster Beats By Dre, wrapped in some different, Ralph Lauren Outlet, kind of scenery, Oakley Sunglaases Outlet, wherever the wind in the faces, of the people, Michael Kors Bags Outlet, who are very Huddled, could not help.

 
18. Sep 2014, 14:12 CET | Link
 
27. Oct 2014, 10:19 CET | Link

there is at lest hope that i ad from this info , now i will definately try this for sure all over guys

 
29. Oct 2014, 08:14 CET | Link

hmm. lookng forwrds too see so much from you also

 
11. Dec 2014, 17:12 CET | Link

Really i appreciate the effort you made to share the knowledge.The topic here i found was really effective to the topic which i was researching for a long time

 
11. Dec 2014, 21:22 CET | Link

congratulation for the great post. Those who come to read your article will find lots of helpful and informative tips.

11. Dec 2014, 23:33 CET | Link

congratulation for the great post. Those who come to read your article will find lots of helpful and informative tips.

 
17. Dec 2014, 04:18 CET | Link

You should comment on the competition comparison of the blog. You can highlight it's mind boggling. Your blog exploration/tour will broaden your conversions.

 
17. Dec 2014, 04:25 CET | Link
archiearnold

You may post on the professional credentials for the blog owner. You could express it's outstanding. Your blog experience can springboard your click through. Berita Bola