Table of Contents
...
Facilities | ||||||
---|---|---|---|---|---|---|
FacilityId | OrganizationId | Name | Timezone | NFCEnabled | NFCSelfModificationEnabled | BarCodeEnabled |
ACME-PH | ACME | Pearl Harbor | US/Hawaii | true | false | false |
...
- Lines #25 and #50 define the 2 rules
- In "New Patient Admission" rule (the other rule is similar):
- Line #35 logs information
- Line #37 inserts a new ResolvableActionNotificationCandidateFact that will end up notifying the ActionAgent about a new Alert.
- Line #44 specifies the Template id that we want to use. Templates and their Ids are defined in the ActionAgent.
The next step is to create a change-set that includes all the necessary .drl files. Let's call this file ACME-change-set.xml.
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?>
<change-set xmlns='http://drools.org/drools-5.0/change-set' xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd'>
<add>
<resource type="DRL" source="classpath:org/drools/mas/acl_common.drl" />
<resource type="DRL" source="classpath:knowledge/subsession/subsession-config.drl" />
<resource type="DRL" source="classpath:knowledge/subsession/survey-common.drl" />
<resource type="DRL" source="classpath:knowledge/subsession/survey-prevalidation-common.drl" />
<resource type="DRL" source="classpath:knowledge/subsession/survey-alert-common.drl" />
<resource type="DRL" source="classpath:knowledge/subsession/ACME-alerts.drl" />
</add>
</change-set> |
Some important notes about the change-set: