Bug 1005204

Summary: DRL containing CEP Windows do not compile if Type is defined in Java and annotated as event
Product: [Retired] JBoss BRMS Platform 6 Reporter: manstis
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Winkler <mwinkler>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: mfusco, rzhang
Target Milestone: ER5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:18:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description manstis 2013-09-06 12:43:06 UTC
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:

Comment 6 Mario Fusco 2013-10-10 10:23:57 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/f4baca9a4

Comment 7 Marek Winkler 2013-12-12 16:54:35 UTC
Verified on BRMS 6.0.0 ER5.