Hi

I have such problem. I use Guvnor as a storage for rules, and now i want to add calendars declaration to some rule. I've done this and in my sources of these rules i can see:

rule "CalendarTest"
        calendars "AUD Home Loans"
        no-loop true
        dialect "mvel"
        when
           
        then
            System.out.println("CALENDAR IS WORKING!!!");
    end

In my application I use KnowledgeAgent and such configuration to use rules from Guvnor:

KnowledgeBuilder builder = KnowledgeBuilderFactory
                .newKnowledgeBuilder();
        builder.add(ResourceFactory.newClassPathResource("ChangeSet.xml"),
               ResourceType.CHANGE_SET);
        if (builder.hasErrors()) {
            throw new RuntimeException(builder.getErrors().toString());
        } // creating KnowledgeBase and Session
        KnowledgeBase base = KnowledgeBaseFactory.newKnowledgeBase();
        base.addKnowledgePackages(builder.getKnowledgePackages());
        StatefulKnowledgeSession session = base.newStatefulKnowledgeSession();

my ChangeSet.xml looks like this:

<change-set xmlns='http://drools.org/drools-5.0/change-set'
    xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
    xs:schemaLocation='http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd' >
    <add>
         <resource source='   
http://localhost:8083/drools-guvnor/rest/packages/magick-model/source' type='DRL' basicAuthentication="enabled" username="admin" password="admin"/>
    </add>
</change-set>

But the problem is when i invoke fureRules this rule with calendars clause also invokes, even if i don't set any calendar objects to session.

Can you help me what the problem is?

And if i just use local drl file, everything works fine

Thanks, Anton