⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cheese-rules.drl

📁 jboss规则引擎
💻 DRL
字号:
# Example DRL with expansion 
# (ie "domain specific language")

# declare expanders for domain specific and natural language extensions
use expander cheese.dsl.properties
#this one is just a simple properties file


rule cheese_rules
    when
        Bob is in atlanta
        Bob likes cheese
	    #There exists a Guest with name of "Michael" and sex of "Male"
        >Guest( name == seatingRightGuestName, rightGuestSex:sex, rightGuestHobby:hobby )
        >Guest( leftGuestName:name , sex != rightGuestSex, hobby == rightGuestHobby )

        #count => Count() can be replaced by
        bind count to Count
    then
        Send notification to Mark with message "hello"
        >System.out.println("and this is code")
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -