火力规则打击规则实现
This commit is contained in:
14
auto-solution-rule/src/main/resources/rules/fire-rule.drl
Normal file
14
auto-solution-rule/src/main/resources/rules/fire-rule.drl
Normal file
@@ -0,0 +1,14 @@
|
||||
package rules;
|
||||
|
||||
import com.solution.rule.domain.simplerulepojo.Task
|
||||
|
||||
rule "任务入口"
|
||||
agenda-group "打击任务"
|
||||
when
|
||||
$task : Task(dataType == "A")
|
||||
|
||||
then
|
||||
kcontext.getKieRuntime().getAgenda()
|
||||
.getAgendaGroup("MATCH")
|
||||
.setFocus();
|
||||
end
|
||||
Reference in New Issue
Block a user