summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/contrib/demos/workpool-distributed/workerRules.drl
blob: e7ebcad4c0ebaaad1e360a7099d10478f597b605 (plain)
1
2
3
4
5
6
7
8
9
package workpool
import workpool.*;
rule "WorkerAdder"
	when 
		$workerBean: WorkpoolBean(singleAction == false && (jobComputed > 500))
	then
		$workerBean.addWorkerToNode("nodeB");
		$workerBean.setSingleAction();
end