[rules-users] Use System Variable when referring to Resources

srikanthmalli srikanthmalli at gmail.com
Wed Sep 18 19:32:36 EDT 2013


Hi,

Is it possible to use System variable when referring to Resources in
Drools-Spring integration?

<drools:kagent id="kAgent" kbase="kBase" new-instance="false">
   <drools:resources>
        <drools:resource type="PKG"
             source="file:/C:/Guvnor-Repository/Sample_v1.PKG">
        </drools:resource>
   </drools:resources>
</drools:kagent>


<drools:kagent id="kAgent" kbase="kBase" new-instance="false">
   <drools:resources>
        <drools:resource type="PKG"
             source="file:${SYS_VAR_RULE_PKG_DIR}/Sample_v1.PKG">
        </drools:resource>
   </drools:resources>
</drools:kagent>

Thanks,
-Sri



--
View this message in context: http://drools.46999.n3.nabble.com/Use-System-Variable-when-referring-to-Resources-tp4026039.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list