Description of problem: If a Type used in DRL that uses CEP Windows is defined in Java and annotated with @org.kie.api.definition.type.Role(value = org.kie.api.definition.type.Role.Type.EVENT) the DRL fails to compile. Version-Release number of selected component (if applicable): 6.0.0. How reproducible: See org.drools.compiler.integrationtests.CepJavaTypeTest in drools-compiler for a reproducer. Steps to Reproduce: 1. See reproducer. Actual results: Build errors. Expected results: DRL compiles the same as if Type was defined in DRL. Additional info:
Reproducer: (master) http://github.com/droolsjbpm/drools/commit/e7bca8286 (6.0.x) http://github.com/droolsjbpm/drools/commit/9aea90edf
Fixed by https://github.com/droolsjbpm/drools/commit/f4baca9a4
Verified on BRMS 6.0.0 ER5.