[jboss-svn-commits] JBL Code SVN: r15107 - labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Sep 14 00:39:48 EDT 2007
Author: michael.neale at jboss.com
Date: 2007-09-14 00:39:48 -0400 (Fri, 14 Sep 2007)
New Revision: 15107
Modified:
labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/TroubleTicketWithDSL.dslr
Log:
correcting example
Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/TroubleTicketWithDSL.dslr
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/TroubleTicketWithDSL.dslr 2007-09-14 04:26:20 UTC (rev 15106)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/TroubleTicketWithDSL.dslr 2007-09-14 04:39:48 UTC (rev 15107)
@@ -4,18 +4,18 @@
rule "New Ticket"
salience 10
- when
-
+ when
+ There is a customer ticket with status of "New"
then
- Log "New"
+ Log "New ticket..."
end
-
+
rule "Silver Priorty"
#if after a certain time, we still have an issue, then escalate
duration 3000
- when
- There is a "Silver" customer with a ticket status of "New"
-
+ when
+ There is a "Silver" customer with a ticket status of "New"
+
then
Escalate the ticket
end
@@ -30,25 +30,25 @@
rule "Platinum Priority"
#we don't want to make the high rollers wait !
- when
+ when
There is a "Platinum" customer with a ticket status of "New"
then
Escalate the ticket
end
-
+
rule "Escalate"
when
- There is a customer ticket with status of "Escalate"
- then
+ There is a customer ticket with status of "Escalate"
+ then
Send escalation email
end
rule "Done"
when
- There is a customer ticket with status of "Done"
- then
+ There is a customer ticket with status of "Done"
+ then
Log "Done"
end
More information about the jboss-svn-commits
mailing list