Created attachment 879516 [details] .niogit Description of problem: Trying to follow a sample workflow. Created some data models to use in rules and the Guided Rule Editor. However, the models are not available. The package cannot be deployed and there are errors in the logs. 10:18:57,641 INFO [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (http-localhost/127.0.0.1:8080-1) KieModule was added:MemoryKieModule[ ReleaseId=org.acme.insurance:policyquote:1.0] 10:18:57,683 ERROR [org.guvnor.common.services.builder.Builder] (http-localhost/127.0.0.1:8080-1) org.acme.insurance.Driver from [Module "deployment.business-central.war:main" from Service Module Loader] 10:18:57,683 ERROR [org.guvnor.common.services.builder.Builder] (http-localhost/127.0.0.1:8080-1) org.acme.insurance.Rejection from [Module "deployment.business-central.war:main" from Service Module Loader] 10:19:05,479 ERROR [org.kie.workbench.common.services.datamodel.backend.server.cache.LRUProjectDataModelOracleCache] (http-localhost/127.0.0.1:8080-1) org.acme.insurance.Driver from [Module "deployment.business-central.war:main" from Service Module Loader] 10:19:05,479 ERROR [org.kie.workbench.common.services.datamodel.backend.server.cache.LRUProjectDataModelOracleCache] (http-localhost/127.0.0.1:8080-1) org.acme.insurance.Rejection from [Module "deployment.business-central.war:main" from Service Module Loader] 10:21:13,255 INFO [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (http-localhost/127.0.0.1:8080-1) KieModule was added:MemoryKieModule[ ReleaseId=org.acme.insurance:policyquote:1.0] Version-Release number of selected component (if applicable): Identified in jboss-brms-6.0.1.GA-redhat-4 (CR2) How reproducible: Consistent Steps to Reproduce: 1. Create data models 2. Try to use data models in rules 3. Data models are missing Actual results: Data models not available for rules Expected results: Data models available for rules Additional info:
Using the acme/insurance/policyquote project. This is caused by the incorrect use of "Import Suggestions". "Import Suggestions" are really badly named; they are really a place to define imports for classes *not* in the Project, but for example (and their main use) classes in the JRE that you need: java.util.List etc. Rmeoving the entries in "Import Suggestions" for Driver and Rejection solved the problem completely. See BZ https://bugzilla.redhat.com/show_bug.cgi?id=1078763 where we anticipate changing the behaviour of "Import Suggestions" to do as Adam (I assume) thought they operate. This BZ is not a bug.
I don't think it's necessary to change the application behavior. Notifying the user when they try to add something that exists in the package or is otherwise included by default would be sufficient. Adam
Can't reproduce exactly. I am able to use the model facts in guided editor to create a valid rule. The only problem is the build error: Class not found: org.acme.insurance.Driver from [Module "deployment.business-central.war:main" from Service Module Loader] This is no longer an error in 6.0.2, only a warning. In any case, as Michael said, the problem is caused by incorrect using of project imports, which is not something the can be addressed within 6.0.2 release.