Red Hat Bugzilla – Bug 1005204
DRL containing CEP Windows do not compile if Type is defined in Java and annotated as event
Last modified: 2014-08-06 16:18:52 EDT
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):
See org.drools.compiler.integrationtests.CepJavaTypeTest in drools-compiler for a reproducer.
Steps to Reproduce:
1. See reproducer.
DRL compiles the same as if Type was defined in DRL.
Fixed by https://github.com/droolsjbpm/drools/commit/f4baca9a4
Verified on BRMS 6.0.0 ER5.