summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/branches/sca-equinox/demos/workpool-distributed/workerRules.drl
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/branches/sca-equinox/demos/workpool-distributed/workerRules.drl')
-rw-r--r--sca-java-2.x/branches/sca-equinox/demos/workpool-distributed/workerRules.drl9
1 files changed, 9 insertions, 0 deletions
diff --git a/sca-java-2.x/branches/sca-equinox/demos/workpool-distributed/workerRules.drl b/sca-java-2.x/branches/sca-equinox/demos/workpool-distributed/workerRules.drl
new file mode 100644
index 0000000000..e7ebcad4c0
--- /dev/null
+++ b/sca-java-2.x/branches/sca-equinox/demos/workpool-distributed/workerRules.drl
@@ -0,0 +1,9 @@
+package workpool
+import workpool.*;
+rule "WorkerAdder"
+ when
+ $workerBean: WorkpoolBean(singleAction == false && (jobComputed > 500))
+ then
+ $workerBean.addWorkerToNode("nodeB");
+ $workerBean.setSingleAction();
+end