0

I am working with Drools rules. Some developers have created rules which I have to put on Guvnor (rules repository) and build packages. In these rules they have import statements with wildcards, for example: import org.drools.runtime.rule.*;

When I upload this on Guvnor and try to build, it tells me: Unable to introspect model for wild card imports (org.drools.runtime.rule.*). Please explicitly import each fact type you require.

Is it possible to use wildcard imports in Drools rules???

Danubian Sailor
  • 1
  • 38
  • 145
  • 223
azec-pdx
  • 4,790
  • 6
  • 56
  • 87

1 Answers1

1

It is possible in Drools DRL, but not in Guvnor.

Guvnor adds automatically all the imports when you upload your model jar.

You can find more information about this here https://jira.jboss.org/jira/browse/BRMS-257

Toni Rikkola
  • 983
  • 4
  • 8
  • 1
    Actually it was my mistake. It is impossible to validate imports with wildcards on Guvnor, but the packages can be built even with wildcards. – azec-pdx Jun 07 '10 at 09:21