diff options
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.drl | 9 |
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 |