Drools Integration User Guide
Turning on Drools
1 Add “fixicch2.drools = true” configuration to local.app.properties file
or
2 Go to Administration-Application properties, Select fixicch2.drools and set current value: true= on; false=off
Configuration
1. Select a server- Configurations
2. Choose “Edit kmodule .xml”
3. Put own configuration in kmodule:
<kmodule xmlns="
http://jboss.org/kie/6.0.0/kmodule">
<kbase name="kbase1" packages="package1">
<ksession name="ksession1" type="stateful"/>
</kbase>
</kmodule>
Choose Drools Components from Configurations:
Attach the file with rules. It’s also possible to download or remove the attached file:
File sample:
Select the “Business Rules” from Configurations
Add configuration:
import com.epam.fej.routing.drools.DroolsEngine DroolsEngine dre = drools as DroolsEngine rulesDSL(routingContext as RoutingContext) { |
---|