[rules-users] Drools 5 - Not sure why this simple DSL not working

Premkumar Stephen prem18 at gmail.com
Fri Aug 14 12:53:03 EDT 2009


http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.htmlSection
4.10.2


2009/8/14 Vijay K Pandey <VPandey at mdes.ms.gov>

>  Hi,
>
>
>
> I am trying to get a very simple DSL working but all the time it gives the
> error of *Unable to expand:* If I take the DSL away everything runs fine,
> not sure whats going on.
>
>
>
> So what I did is strip away all other stuff and just added a plain simple
> DSL -- but still the same error
>
>
>
> *Unable to expand:             LOGGING*
>
>
>
> *DSLR file Contents:*
>
>
>
> package test.rules
>
> dialect "mvel"
>
>
>
> expander testing.dsl
>
>
>
> rule "TestingCheck"
>
>
>
>       when
>
>       then
>
>             *LOGGING *
>
> end
>
>
>
> *DSL file content*
>
> [consequence][]LOGGING=System.out.println("hello");
>
>
>
> *ChangeSet XML file (test_changeset.xml)*
>
> <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
> drools-change-set-5.0.xsd<http://drools.org/drools-5.0/change-set%0Adrools-change-set-5.0.xsd>'
> >
>
>    <add>
>
>        <resource source='classpath:test/rules/test.drl' type='DSLR' />
>
>        <resource source='classpath:test/rules/testing.dsl' type='DSL' />
>
>    </add>
>
> </change-set>
>
>
>
> *I am loading the changeset set via*
>
>
>
> KnowledgeBuilder kbuilder =
> KnowledgeBuilderFactory.newKnowledgeBuilder();
>
> kbuilder.add(ResourceFactory.newClassPathResource("test_changeset.xml"),
> ResourceType.CHANGE_SET);
>
>
>
> Any hint what is going wrong?
>
>
>
> Thanks
>
> Vijay
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090814/fc857d04/attachment.html 


More information about the rules-users mailing list