大坪网站公司,常州微信网站建设案例,如何用网站赚钱,电子商务网站建设及推广方案论文drools。droolsDrools 6包含一个跟踪输出#xff0c;可以帮助您了解系统中正在发生的事情#xff0c;事物执行的频率以及多少数据。 这也有助于理解Drools 6现在是基于目标的算法#xff0c;它使用链接机制链接评估规则。 有关此的更多详细信息#xff1a; http://www.ja… drools。drools Drools 6包含一个跟踪输出可以帮助您了解系统中正在发生的事情事物执行的频率以及多少数据。 这也有助于理解Drools 6现在是基于目标的算法它使用链接机制链接评估规则。 有关此的更多详细信息 http://www.javacodegeeks.com/2013/11/rip-rete-time-to-get-phreaky.html 首先要做的是将slf4j记录器设置为跟踪模式 appender nameconsoleAppender classch.qos.logback.core.ConsoleAppenderencoder!-- %l lowers performance --!--pattern%d [%t] %-5p %l%n %m%n/pattern--pattern%d [%t] %-5p %m%n/pattern/encoder/appenderlogger nameorg.drools leveltrace/root levelinfo!-- TODO We probably want to set default level to warn instead --appender-ref refconsoleAppender //root
/configuration 让我们以购物为例您可以在这里找到Java和Drl文件 https://github.com/droolsjbpm/drools/blob/master/drools-examples/src/main/resources/org/drools/examples/shopping/Shopping.drl https://github.com/droolsjbpm/drools/blob/master/drools-examples/src/main/java/org/drools/examples/shopping/ShoppingExample.java 运行该示例将为输出提供非常详细且冗长的执行日志。 最初您将看到插入的对象这会导致链接。 在Drools 6算法链接中说明了节点和规则的链接。 总结1..n节点在插入对象时链接在一个段中。 2014-10-02 02:35:09,009 [main] TRACE Insert [fact 0:1:1455177644:1455177644:1:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Customer56bc3fac]
2014-10-02 02:35:09,020 [main] TRACE LinkNode notifyfalse nmask1 smask1 spos0 rules 然后1..n段链接到规则中。 当一个规则被链接时它就在议程上以进行评估。 2014-10-02 02:35:09,043 [main] TRACE LinkRule nameDiscount removed notification
2014-10-02 02:35:09,043 [main] TRACE Queue RuleAgendaItem [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,043 [main] TRACE Queue Added 1 [Activation ruleDiscount removed notification, act#0, salience0, tuplenull] 当它最终评估规则时它将在访问每个节点时缩进从根到末端进行评估。 每个节点将尝试告诉您此时要插入更新或删除多少数据。 2014-10-02 02:35:09,046 [main] TRACE Rule[nameApply 10% discount if total purchases is over 100] segments2 TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,047 [main] TRACE 1 [ AccumulateNode(12) ] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,047 [main] TRACE Segment 1
2014-10-02 02:35:09,047 [main] TRACE 1 [ AccumulateNode(12) ] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,047 [main] TRACE rightTuples TupleSets[insertSize2, deleteSize0, updateSize0]
2014-10-02 02:35:09,056 [main] TRACE 2 [RuleTerminalNode(13): ruleApply 10% discount if total purchases is over 100] TupleSets[insertSize1, deleteSize0, updateSize0] 您可以使用此信息来查看规则评估的频率进行链接和取消链接的次数传播的数据量以及更重要的是浪费了多少工作。 这是完整的日志 2014-10-02 02:35:08,889 [main] DEBUG Starting Engine in PHREAK mode
2014-10-02 02:35:08,927 [main] TRACE Adding Rule Purchase notification
2014-10-02 02:35:08,929 [main] TRACE Adding Rule Discount removed notification
2014-10-02 02:35:08,931 [main] TRACE Adding Rule Discount awarded notification
2014-10-02 02:35:08,933 [main] TRACE Adding Rule Apply 10% discount if total purchases is over 100
2014-10-02 02:35:09,009 [main] TRACE Insert [fact 0:1:1455177644:1455177644:1:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Customer56bc3fac]
2014-10-02 02:35:09,020 [main] TRACE LinkNode notifyfalse nmask1 smask1 spos0 rules
2014-10-02 02:35:09,020 [main] TRACE LinkSegment smask2 rmask2 nameDiscount removed notification
2014-10-02 02:35:09,025 [main] TRACE LinkSegment smask2 rmask2 nameApply 10% discount if total purchases is over 100
2014-10-02 02:35:09,028 [main] TRACE LinkNode notifytrue nmask1 smask1 spos0 rules[RuleMem Purchase notification], [RuleMem Discount removed notification], [RuleMem Discount awarded notification], [RuleMem Apply 10% discount if total purchases is over 100]
2014-10-02 02:35:09,028 [main] TRACE LinkSegment smask1 rmask1 namePurchase notification
2014-10-02 02:35:09,028 [main] TRACE LinkSegment smask1 rmask3 nameDiscount removed notification
2014-10-02 02:35:09,043 [main] TRACE LinkRule nameDiscount removed notification
2014-10-02 02:35:09,043 [main] TRACE Queue RuleAgendaItem [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,043 [main] TRACE Queue Added 1 [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,043 [main] TRACE LinkSegment smask1 rmask1 nameDiscount awarded notification
2014-10-02 02:35:09,043 [main] TRACE LinkSegment smask1 rmask3 nameApply 10% discount if total purchases is over 100
2014-10-02 02:35:09,043 [main] TRACE LinkRule nameApply 10% discount if total purchases is over 100
2014-10-02 02:35:09,043 [main] TRACE Queue RuleAgendaItem [Activation ruleApply 10% discount if total purchases is over 100, act#1, salience0, tuplenull]
2014-10-02 02:35:09,043 [main] TRACE Queue Added 2 [Activation ruleApply 10% discount if total purchases is over 100, act#1, salience0, tuplenull]
2014-10-02 02:35:09,043 [main] TRACE Added Apply 10% discount if total purchases is over 100 to eager evaluation list.
2014-10-02 02:35:09,044 [main] TRACE Insert [fact 0:2:14633842:14633842:2:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Productdf4b72]
2014-10-02 02:35:09,044 [main] TRACE Insert [fact 0:3:732189840:732189840:3:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Product2ba45490]
2014-10-02 02:35:09,044 [main] TRACE Insert [fact 0:4:939475028:939475028:4:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Purchase37ff4054]
2014-10-02 02:35:09,045 [main] TRACE BetaNode insert1 stagedInsertWasEmptytrue
2014-10-02 02:35:09,045 [main] TRACE LinkNode notifytrue nmask1 smask1 spos1 rules[RuleMem Purchase notification]
2014-10-02 02:35:09,045 [main] TRACE LinkSegment smask2 rmask3 namePurchase notification
2014-10-02 02:35:09,045 [main] TRACE LinkRule namePurchase notification
2014-10-02 02:35:09,046 [main] TRACE Queue RuleAgendaItem [Activation rulePurchase notification, act#2, salience10, tuplenull]
2014-10-02 02:35:09,046 [main] TRACE Queue Added 1 [Activation rulePurchase notification, act#2, salience10, tuplenull]
2014-10-02 02:35:09,046 [main] TRACE BetaNode insert1 stagedInsertWasEmptytrue
2014-10-02 02:35:09,046 [main] TRACE LinkNode notifytrue nmask1 smask1 spos1 rules[RuleMem Apply 10% discount if total purchases is over 100]
2014-10-02 02:35:09,046 [main] TRACE LinkSegment smask2 rmask3 nameApply 10% discount if total purchases is over 100
2014-10-02 02:35:09,046 [main] TRACE LinkRule nameApply 10% discount if total purchases is over 100
2014-10-02 02:35:09,046 [main] TRACE Added Apply 10% discount if total purchases is over 100 to eager evaluation list.
2014-10-02 02:35:09,046 [main] TRACE Insert [fact 0:5:8996952:8996952:5:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Purchase894858]
2014-10-02 02:35:09,046 [main] TRACE BetaNode insert2 stagedInsertWasEmptyfalse
2014-10-02 02:35:09,046 [main] TRACE BetaNode insert2 stagedInsertWasEmptyfalse
2014-10-02 02:35:09,046 [main] TRACE Rule[nameApply 10% discount if total purchases is over 100] segments2 TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,047 [main] TRACE 1 [ AccumulateNode(12) ] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,047 [main] TRACE Segment 1
2014-10-02 02:35:09,047 [main] TRACE 1 [ AccumulateNode(12) ] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,047 [main] TRACE rightTuples TupleSets[insertSize2, deleteSize0, updateSize0]
2014-10-02 02:35:09,056 [main] TRACE 2 [RuleTerminalNode(13): ruleApply 10% discount if total purchases is over 100] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,057 [main] TRACE Segment 1
2014-10-02 02:35:09,057 [main] TRACE 2 [RuleTerminalNode(13): ruleApply 10% discount if total purchases is over 100] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,057 [main] TRACE Rule[nameApply 10% discount if total purchases is over 100] segments2 TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,057 [main] TRACE 3 [ AccumulateNode(12) ] TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,057 [main] TRACE Rule[namePurchase notification] segments2 TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,057 [main] TRACE 4 [JoinNode(5) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Purchase]] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,057 [main] TRACE Segment 1
2014-10-02 02:35:09,057 [main] TRACE 4 [JoinNode(5) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Purchase]] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,058 [main] TRACE rightTuples TupleSets[insertSize2, deleteSize0, updateSize0]
2014-10-02 02:35:09,058 [main] TRACE 5 [RuleTerminalNode(6): rulePurchase notification] TupleSets[insertSize2, deleteSize0, updateSize0]
2014-10-02 02:35:09,058 [main] TRACE Segment 1
2014-10-02 02:35:09,058 [main] TRACE 5 [RuleTerminalNode(6): rulePurchase notification] TupleSets[insertSize2, deleteSize0, updateSize0]
2014-10-02 02:35:09,058 [main] TRACE Fire Purchase notification
[[ Purchase notification activefalse ] [ [fact 0:4:939475028:939475028:4:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Purchase37ff4054]
[fact 0:1:1455177644:1455177644:1:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Customer56bc3fac] ] ]
Customer mark just purchased shoes
2014-10-02 02:35:09,060 [main] TRACE Fire Purchase notification
[[ Purchase notification activefalse ] [ [fact 0:5:8996952:8996952:5:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Purchase894858]
[fact 0:1:1455177644:1455177644:1:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Customer56bc3fac] ] ]
Customer mark just purchased hat
2014-10-02 02:35:09,061 [main] TRACE Removing RuleAgendaItem [Activation rulePurchase notification, act#2, salience10, tuplenull]
2014-10-02 02:35:09,061 [main] TRACE Queue Removed 1 [Activation rulePurchase notification, act#2, salience10, tuplenull]
2014-10-02 02:35:09,061 [main] TRACE Rule[nameDiscount removed notification] segments2 TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,061 [main] TRACE 6 [NotNode(8) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Discount]] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,061 [main] TRACE Segment 1
2014-10-02 02:35:09,061 [main] TRACE 6 [NotNode(8) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Discount]] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,061 [main] TRACE rightTuples TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,061 [main] TRACE 7 [RuleTerminalNode(9): ruleDiscount removed notification] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,061 [main] TRACE Segment 1
2014-10-02 02:35:09,061 [main] TRACE 7 [RuleTerminalNode(9): ruleDiscount removed notification] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,061 [main] TRACE Fire Discount removed notification
[[ Discount removed notification activefalse ] [ null
[fact 0:1:1455177644:1455177644:1:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Customer56bc3fac] ] ]
Customer mark now has a discount of 0
2014-10-02 02:35:09,063 [main] TRACE Removing RuleAgendaItem [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,063 [main] TRACE Queue Removed 1 [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,063 [main] TRACE Fire Apply 10% discount if total purchases is over 100
[[ Apply 10% discount if total purchases is over 100 activefalse ] [ [fact 0:6:2063009760:1079902208:6:null:NON_TRAIT:120.0]
[fact 0:1:1455177644:1455177644:1:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Customer56bc3fac] ] ]
2014-10-02 02:35:09,071 [main] TRACE Insert [fact 0:7:874153561:874153561:7:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Discount341a8659]
2014-10-02 02:35:09,071 [main] TRACE LinkSegment smask2 rmask3 nameDiscount removed notification
2014-10-02 02:35:09,071 [main] TRACE LinkRule nameDiscount removed notification
2014-10-02 02:35:09,071 [main] TRACE Queue RuleAgendaItem [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,071 [main] TRACE Queue Added 1 [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,071 [main] TRACE BetaNode insert1 stagedInsertWasEmptytrue
2014-10-02 02:35:09,071 [main] TRACE LinkNode notifytrue nmask1 smask1 spos1 rules[RuleMem Discount awarded notification]
2014-10-02 02:35:09,071 [main] TRACE LinkSegment smask2 rmask3 nameDiscount awarded notification
2014-10-02 02:35:09,071 [main] TRACE LinkRule nameDiscount awarded notification
2014-10-02 02:35:09,071 [main] TRACE Queue RuleAgendaItem [Activation ruleDiscount awarded notification, act#7, salience0, tuplenull]
2014-10-02 02:35:09,071 [main] TRACE Queue Added 3 [Activation ruleDiscount awarded notification, act#7, salience0, tuplenull]
Customer mark now has a shopping total of 120.0
2014-10-02 02:35:09,071 [main] TRACE Removing RuleAgendaItem [Activation ruleApply 10% discount if total purchases is over 100, act#1, salience0, tuplenull]
2014-10-02 02:35:09,071 [main] TRACE Queue Removed 2 [Activation ruleApply 10% discount if total purchases is over 100, act#1, salience0, tuplenull]
2014-10-02 02:35:09,071 [main] TRACE Rule[nameDiscount removed notification] segments2 TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,072 [main] TRACE 8 [NotNode(8) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Discount]] TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,072 [main] TRACE Segment 1
2014-10-02 02:35:09,072 [main] TRACE 8 [NotNode(8) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Discount]] TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,072 [main] TRACE rightTuples TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,073 [main] TRACE 9 [RuleTerminalNode(9): ruleDiscount removed notification] TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,073 [main] TRACE Segment 1
2014-10-02 02:35:09,073 [main] TRACE 9 [RuleTerminalNode(9): ruleDiscount removed notification] TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,073 [main] TRACE Removing RuleAgendaItem [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,073 [main] TRACE Queue Removed 1 [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,073 [main] TRACE Rule[nameDiscount awarded notification] segments2 TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,073 [main] TRACE 10 [JoinNode(10) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Discount]] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,073 [main] TRACE Segment 1
2014-10-02 02:35:09,073 [main] TRACE 10 [JoinNode(10) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Discount]] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,074 [main] TRACE rightTuples TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,074 [main] TRACE 11 [RuleTerminalNode(11): ruleDiscount awarded notification] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,074 [main] TRACE Segment 1
2014-10-02 02:35:09,074 [main] TRACE 11 [RuleTerminalNode(11): ruleDiscount awarded notification] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,074 [main] TRACE Fire Discount awarded notification
[[ Discount awarded notification activefalse ] [ [fact 0:7:874153561:874153561:7:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Discount341a8659]
[fact 0:1:1455177644:1455177644:1:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Customer56bc3fac] ] ]
Customer mark now has a discount of 10
2014-10-02 02:35:09,074 [main] TRACE Removing RuleAgendaItem [Activation ruleDiscount awarded notification, act#7, salience0, tuplenull]
2014-10-02 02:35:09,074 [main] TRACE Queue Removed 1 [Activation ruleDiscount awarded notification, act#7, salience0, tuplenull]
2014-10-02 02:35:09,074 [main] TRACE Delete [fact 0:5:8996952:8996952:5:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Purchase894858]
2014-10-02 02:35:09,074 [main] TRACE LinkSegment smask2 rmask3 namePurchase notification
2014-10-02 02:35:09,074 [main] TRACE LinkRule namePurchase notification
2014-10-02 02:35:09,074 [main] TRACE Queue RuleAgendaItem [Activation rulePurchase notification, act#2, salience10, tuplenull]
2014-10-02 02:35:09,074 [main] TRACE Queue Added 1 [Activation rulePurchase notification, act#2, salience10, tuplenull]
2014-10-02 02:35:09,075 [main] TRACE LinkSegment smask2 rmask3 nameApply 10% discount if total purchases is over 100
2014-10-02 02:35:09,075 [main] TRACE LinkRule nameApply 10% discount if total purchases is over 100
2014-10-02 02:35:09,075 [main] TRACE Queue RuleAgendaItem [Activation ruleApply 10% discount if total purchases is over 100, act#1, salience0, tuplenull]
2014-10-02 02:35:09,075 [main] TRACE Queue Added 2 [Activation ruleApply 10% discount if total purchases is over 100, act#1, salience0, tuplenull]
2014-10-02 02:35:09,075 [main] TRACE Added Apply 10% discount if total purchases is over 100 to eager evaluation list.
Customer mark has returned the hat
2014-10-02 02:35:09,075 [main] TRACE Rule[nameApply 10% discount if total purchases is over 100] segments2 TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,075 [main] TRACE 12 [ AccumulateNode(12) ] TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,075 [main] TRACE Segment 1
2014-10-02 02:35:09,075 [main] TRACE 12 [ AccumulateNode(12) ] TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,075 [main] TRACE rightTuples TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,075 [main] TRACE 13 [RuleTerminalNode(13): ruleApply 10% discount if total purchases is over 100] TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,075 [main] TRACE Segment 1
2014-10-02 02:35:09,075 [main] TRACE 13 [RuleTerminalNode(13): ruleApply 10% discount if total purchases is over 100] TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,075 [main] TRACE Delete [fact 0:7:874153561:874153561:7:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Discount341a8659]
2014-10-02 02:35:09,075 [main] TRACE LinkSegment smask2 rmask3 nameDiscount removed notification
2014-10-02 02:35:09,075 [main] TRACE LinkRule nameDiscount removed notification
2014-10-02 02:35:09,075 [main] TRACE Queue RuleAgendaItem [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,075 [main] TRACE Queue Added 3 [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,075 [main] TRACE UnlinkNode notifytrue nmask1 smask0 spos1 rules[RuleMem Discount awarded notification]
2014-10-02 02:35:09,076 [main] TRACE UnlinkSegment smask2 rmask1 name[RuleMem Discount awarded notification]
2014-10-02 02:35:09,076 [main] TRACE UnlinkRule nameDiscount awarded notification
2014-10-02 02:35:09,076 [main] TRACE Queue RuleAgendaItem [Activation ruleDiscount awarded notification, act#7, salience0, tuplenull]
2014-10-02 02:35:09,076 [main] TRACE Queue Added 2 [Activation ruleDiscount awarded notification, act#7, salience0, tuplenull]
2014-10-02 02:35:09,076 [main] TRACE Rule[namePurchase notification] segments2 TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,076 [main] TRACE 14 [JoinNode(5) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Purchase]] TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,076 [main] TRACE Segment 1
2014-10-02 02:35:09,076 [main] TRACE 14 [JoinNode(5) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Purchase]] TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,076 [main] TRACE rightTuples TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,076 [main] TRACE 15 [RuleTerminalNode(6): rulePurchase notification] TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,076 [main] TRACE Segment 1
2014-10-02 02:35:09,076 [main] TRACE 15 [RuleTerminalNode(6): rulePurchase notification] TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,076 [main] TRACE Removing RuleAgendaItem [Activation rulePurchase notification, act#2, salience10, tuplenull]
2014-10-02 02:35:09,076 [main] TRACE Queue Removed 1 [Activation rulePurchase notification, act#2, salience10, tuplenull]
2014-10-02 02:35:09,076 [main] TRACE Rule[nameDiscount removed notification] segments2 TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,076 [main] TRACE 16 [NotNode(8) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Discount]] TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,076 [main] TRACE Segment 1
2014-10-02 02:35:09,076 [main] TRACE 16 [NotNode(8) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Discount]] TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,076 [main] TRACE rightTuples TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,077 [main] TRACE 17 [RuleTerminalNode(9): ruleDiscount removed notification] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,077 [main] TRACE Segment 1
2014-10-02 02:35:09,077 [main] TRACE 17 [RuleTerminalNode(9): ruleDiscount removed notification] TupleSets[insertSize1, deleteSize0, updateSize0]
2014-10-02 02:35:09,077 [main] TRACE Fire Discount removed notification
[[ Discount removed notification activefalse ] [ null
[fact 0:1:1455177644:1455177644:1:DEFAULT:NON_TRAIT:org.drools.examples.shopping.ShoppingExample$Customer56bc3fac] ] ]
Customer mark now has a discount of 0
2014-10-02 02:35:09,077 [main] TRACE Removing RuleAgendaItem [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,077 [main] TRACE Queue Removed 1 [Activation ruleDiscount removed notification, act#0, salience0, tuplenull]
2014-10-02 02:35:09,077 [main] TRACE Rule[nameDiscount awarded notification] segments2 TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,077 [main] TRACE 18 [JoinNode(10) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Discount]] TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,077 [main] TRACE Segment 1
2014-10-02 02:35:09,077 [main] TRACE 18 [JoinNode(10) - [ClassObjectType classorg.drools.examples.shopping.ShoppingExample$Discount]] TupleSets[insertSize0, deleteSize0, updateSize0]
2014-10-02 02:35:09,077 [main] TRACE rightTuples TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,077 [main] TRACE 19 [RuleTerminalNode(11): ruleDiscount awarded notification] TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,077 [main] TRACE Segment 1
2014-10-02 02:35:09,077 [main] TRACE 19 [RuleTerminalNode(11): ruleDiscount awarded notification] TupleSets[insertSize0, deleteSize1, updateSize0]
2014-10-02 02:35:09,077 [main] TRACE Removing RuleAgendaItem [Activation ruleDiscount awarded notification, act#7, salience0, tuplenull]
2014-10-02 02:35:09,077 [main] TRACE Queue Removed 1 [Activation ruleDiscount awarded notification, act#7, salience0, tuplenull]
2014-10-02 02:35:09,077 [main] TRACE Removing RuleAgendaItem [Activation ruleApply 10% discount if total purchases is over 100, act#1, salience0, tuplenull]
2014-10-02 02:35:09,077 [main] TRACE Queue Removed 1 [Activation ruleApply 10% discount if total purchases is over 100, act#1, salience0, tuplenull]翻译自: https://www.javacodegeeks.com/2014/10/trace-output-with-drools.htmldrools。drools