summaryrefslogtreecommitdiffstats
path: root/java/sca/demos/workpool-distributed/workerRules1.drl
blob: 6fa0b85ba29f88cd5d377399a12f8a46f9e313c8 (plain)
1
2
3
4
5
6
7
8
9
package workpool
import workpool.*;
rule "WorkerAdder"
	when 
		$workerBean: WorkpoolBean(averageServiceTime > 250)
	then
		$workerBean.addWorkerToNode("nodeB");
		$workerBean.setSingleAction();
end