문제

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???

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top