Currently it is not possible to get annotations from declared entities in Guvnor. It seems to be related to this jira: https://issues.jboss.org/browse/JBRULES-2792 _______________________________________________________________________________ All types created or enhanced by a DRL declare construct must be retrievable from the KnowledgeBase using Declare getDeclare( String pkg, String name ) A Declare object must provide getters String getPackageName(), getName(), Map<String,Object> getMetaData() (same as Rule) A Declare object must provide Class<?> getFactClass() returning the created or enhanced java-lang.Class. A Declare object must provide long getInferredExpires() returning (for @role(event)) the inferred expiration offset or -1 if none.
Davide Sottara <dsotty> made a comment on jira JBRULES-2792 The fix has been merged in 5.5.1-SNAPSHOT and master. Will be available in 5.6-Final and 6.0
Davide Sottara <dsotty> updated the status of jira JBRULES-2792 to Closed