The rules in a XLS file form a "Decision Table." Each row in the XLS would compile into a separate rule.

I suspect the asset you have created in Guvnor is called "rule1" and represents a single XLS file.

Without seeing the XLS file it is impossible to comment further, but I suspect again that it contains multiple rows.

With kind regards,


On 9 April 2013 17:54, ciberg2 <> wrote:
Hi, I have Guvnor running with a package that has several BPMN processes and
now I'm adding rules to it.

The rules are made in Excel files and built into the package.

I have a web application in JAVA that fires the rules and if I have only one
rule in the package it works fine.
But if I deploy more than one rule to the package the result is a list with
the result of applying the input to all the rules that exist in the package.

I tried using this as URL with no success, drools applies the input to all
the rules in the package:

How should I organize the rules? One package for each? It doesn't seem a
good solution to me.
Is it possible to fire only a specific rule? If yes, how?

I use this code:
   public static KnowledgeBase readKnowledgeBase()
            throws Exception {
        UrlResource resource = (UrlResource) ResourceFactory

        KnowledgeBuilder kbuilder = KnowledgeBuilderFactory
        kbuilder.add(resource, ResourceType.PKG);
        KnowledgeBase kbase = kbuilder.newKnowledgeBase();
        return kbase;

Thank you

View this message in context:
Sent from the Drools: User forum mailing list archive at
rules-users mailing list