tkobayas opened a new issue, #6269:
URL: https://github.com/apache/incubator-kie-drools/issues/6269

   executable-model kjar build fails with DRL like this
   
   ```
   package com.sample
   
   import com.sample.DroolsTest.Message;
   
   rule R1
        ruleflow-group "group1"
       when
           m : Message( )
       then
           System.out.println( "R1 : m = " + m );
           m.setCount(m.getCount() + 1);
           update( m );
   end
   ```
   (TODO: more conditions to reproduce?)
   
   ```
   [INFO] --- kie:10.0.0:build (default-build) @ ruleflow-example ---
   [INFO] GenerateModel
   [INFO] Artifact not fetched from maven: org.kie.kogito:jbpm-bpmn2:10.0.0. To 
enable the KieScanner you need kie-ci on the classpath
   [INFO] Artifact not fetched from maven: 
org.drools:drools-model-compiler:10.0.0. To enable the KieScanner you need 
kie-ci on the classpath
   [INFO] Artifact not fetched from maven: 
org.drools:drools-xml-support:10.0.0. To enable the KieScanner you need kie-ci 
on the classpath
   [ERROR] Unable to build KieBaseModel:defaultKieBase
   InvalidExpressionErrorResult: Unable to find class: Message
   ```
   
   workaround: use FQCN
   ```
   package com.sample
    
   import com.sample.DroolsTest.Message;
    
   rule R1
        ruleflow-group "group1"
       when
           m : com.sample.DroolsTest.Message( )
       then
           System.out.println( "R1 : m = " + m );
           m.setCount(m.getCount() + 1);
           update( m );
   end
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to