Examples of addMetaAttribute()


Examples of org.drools.rule.Rule.addMetaAttribute()

    public void buildMetaAttributes(final RuleBuildContext context ) {
        Rule rule = context.getRule();
        for ( String metaAttr : context.getRuleDescr().getAnnotationNames() ) {
            Object value = resolveValue( (String) context.getRuleDescr().getAnnotation(metaAttr).getValue() );
            rule.addMetaAttribute( metaAttr,
                                   value );
        }
    }

    private Object resolveValue( String value ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.