📄 test_threecolumnswithconstraints.drl
字号:
package org.drools.compiler;
import org.drools.Cheese;
import org.drools.Person;
rule "three columns with constraints 1"
when
$cheese1 : Cheese( $type : type == "cheddar", $price1 : price )
$cheese2 : Cheese( type == $type, $price2 : price -> ( $price1.intValue() == $price2.intValue() ) )
Person( name == $type )
then
System.out.println( "done 1" );
end
rule "three columns with constraints 2"
when
$cheese1 : Cheese( $type : type == "cheddar", $price1 : price )
$cheese2 : Cheese( type == $type, $price2 : price -> ( $price1.intValue() == $price2.intValue() ) )
then
System.out.println( "done 2" );
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -