This is an automated email from the ASF dual-hosted git repository.

tkobayas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-docs.git


The following commit(s) were added to refs/heads/main by this push:
     new 1c8a2fef7 [incubator-kie-drools-6534] Fix document "acc" in example 
(#4577)
1c8a2fef7 is described below

commit 1c8a2fef78e0697b11c5a39f94634956340eb154
Author: Toshiya Kobayashi <[email protected]>
AuthorDate: Mon Dec 22 20:22:57 2025 +0900

    [incubator-kie-drools-6534] Fix document "acc" in example (#4577)
---
 .../_drl-rules-WHEN-elements-ref.adoc              |  2 +-
 .../ROOT/pages/language-reference/_drl-rules.adoc  |  2 +-
 .../pages/rule-engine/_execution-control-con.adoc  | 32 +++++++++++-----------
 .../chap-kogito-decision-engine.adoc               | 32 +++++++++++-----------
 .../asciidoc/drl/chap-kogito-using-drl-rules.adoc  |  2 +-
 5 files changed, 35 insertions(+), 35 deletions(-)

diff --git 
a/drools-docs/src/modules/ROOT/pages/language-reference-traditional/_drl-rules-WHEN-elements-ref.adoc
 
b/drools-docs/src/modules/ROOT/pages/language-reference-traditional/_drl-rules-WHEN-elements-ref.adoc
index 0143ef7f0..deb64b80b 100644
--- 
a/drools-docs/src/modules/ROOT/pages/language-reference-traditional/_drl-rules-WHEN-elements-ref.adoc
+++ 
b/drools-docs/src/modules/ROOT/pages/language-reference-traditional/_drl-rules-WHEN-elements-ref.adoc
@@ -412,7 +412,7 @@ end
 ----
 --
 
-`accumulate`::
+`accumulate` (`acc`)::
 Use this to iterate over a collection of objects, execute custom actions for 
each of the elements, and return one or more result objects (if the constraints 
evaluate to `true`). This element is a more flexible and powerful form of the 
`collect` condition element. You can use predefined functions in your 
`accumulate` conditions or implement custom functions as needed. You can also 
use the abbreviation `acc` for `accumulate` in rule conditions.
 +
 --
diff --git 
a/drools-docs/src/modules/ROOT/pages/language-reference/_drl-rules.adoc 
b/drools-docs/src/modules/ROOT/pages/language-reference/_drl-rules.adoc
index 06f74177d..fc2ba2f80 100644
--- a/drools-docs/src/modules/ROOT/pages/language-reference/_drl-rules.adoc
+++ b/drools-docs/src/modules/ROOT/pages/language-reference/_drl-rules.adoc
@@ -2124,7 +2124,7 @@ NOTE: The format `forall( p1 p2 p3 ...)` is equivalent to 
`not( p1 and not( and
 --
 
 [id=accumulate]
-`accumulate`::
+`accumulate` (`acc`)::
 Use this to iterate over a collection of objects, execute custom actions for 
each of the elements, and return one or more result objects (if the constraints 
evaluate to `true`). You can use predefined functions in your `accumulate` 
conditions or implement custom functions as needed. You can also use the 
abbreviation `acc` for `accumulate` in rule conditions.
 +
 --
diff --git 
a/drools-docs/src/modules/ROOT/pages/rule-engine/_execution-control-con.adoc 
b/drools-docs/src/modules/ROOT/pages/rule-engine/_execution-control-con.adoc
index 1ce5d9132..0baff22a0 100644
--- a/drools-docs/src/modules/ROOT/pages/rule-engine/_execution-control-con.adoc
+++ b/drools-docs/src/modules/ROOT/pages/rule-engine/_execution-control-con.adoc
@@ -82,14 +82,14 @@ For example, the following sample DRL rules belong to 
specified agenda groups an
 rule "Increase balance for credits"
   agenda-group "calculation"
 when
-  ap : AccountPeriod()
-  acc : Account( $accountNo : accountNo )
+  $ap : AccountPeriod()
+  $acc : Account( $accountNo : accountNo )
   CashFlow( type == CREDIT,
             accountNo == $accountNo,
-            date >= ap.start && <= ap.end,
+            date >= $ap.start && <= $ap.end,
             $amount : amount )
 then
-  acc.balance  += $amount;
+  $acc.balance  += $amount;
 end
 ----
 
@@ -98,11 +98,11 @@ end
 rule "Print balance for AccountPeriod"
   agenda-group "report"
 when
-  ap : AccountPeriod()
-  acc : Account()
+  $ap : AccountPeriod()
+  $acc : Account()
 then
-  System.out.println( acc.accountNo +
-                      " : " + acc.balance );
+  System.out.println( $acc.accountNo +
+                      " : " + $acc.balance );
 end
 ----
 
@@ -137,11 +137,11 @@ For example, the following sample DRL rules belong to the 
specified internalMatc
 rule "Print balance for AccountPeriod1"
   activation-group "report"
 when
-  ap : AccountPeriod1()
-  acc : Account()
+  $ap : AccountPeriod1()
+  $acc : Account()
 then
-  System.out.println( acc.accountNo +
-                      " : " + acc.balance );
+  System.out.println( $acc.accountNo +
+                      " : " + $acc.balance );
 end
 ----
 
@@ -150,11 +150,11 @@ end
 rule "Print balance for AccountPeriod2"
   activation-group "report"
 when
-  ap : AccountPeriod2()
-  acc : Account()
+  $ap : AccountPeriod2()
+  $acc : Account()
 then
-  System.out.println( acc.accountNo +
-                      " : " + acc.balance );
+  System.out.println( $acc.accountNo +
+                      " : " + $acc.balance );
 end
 ----
 
diff --git 
a/kogito-docs/doc-content/apache-kie-kogito/src/main/asciidoc/decision-engine/chap-kogito-decision-engine.adoc
 
b/kogito-docs/doc-content/apache-kie-kogito/src/main/asciidoc/decision-engine/chap-kogito-decision-engine.adoc
index 29d24dc27..d230101a6 100644
--- 
a/kogito-docs/doc-content/apache-kie-kogito/src/main/asciidoc/decision-engine/chap-kogito-decision-engine.adoc
+++ 
b/kogito-docs/doc-content/apache-kie-kogito/src/main/asciidoc/decision-engine/chap-kogito-decision-engine.adoc
@@ -858,14 +858,14 @@ For example, the following sample DRL rules belong to 
specified agenda groups an
 rule "Increase balance for credits"
   agenda-group "calculation"
 when
-  ap : AccountPeriod()
-  acc : Account( $accountNo : accountNo )
+  $ap : AccountPeriod()
+  $acc : Account( $accountNo : accountNo )
   CashFlow( type == CREDIT,
             accountNo == $accountNo,
-            date >= ap.start && <= ap.end,
+            date >= $ap.start && <= $ap.end,
             $amount : amount )
 then
-  acc.balance  += $amount;
+  $acc.balance  += $amount;
 end
 ----
 
@@ -874,11 +874,11 @@ end
 rule "Print balance for AccountPeriod"
   agenda-group "report"
 when
-  ap : AccountPeriod()
-  acc : Account()
+  $ap : AccountPeriod()
+  $acc : Account()
 then
-  System.out.println( acc.accountNo +
-                      " : " + acc.balance );
+  System.out.println( $acc.accountNo +
+                      " : " + $acc.balance );
 end
 ----
 
@@ -914,11 +914,11 @@ For example, the following sample DRL rules belong to the 
specified activation g
 rule "Print balance for AccountPeriod1"
 activation-group "report"
   when
-    ap : AccountPeriod1()
-    acc : Account()
+    $ap : AccountPeriod1()
+    $acc : Account()
   then
-    System.out.println( acc.accountNo +
-                      " : " + acc.balance );
+    System.out.println( $acc.accountNo +
+                      " : " + $acc.balance );
 end
 ----
 
@@ -927,11 +927,11 @@ end
 rule "Print balance for AccountPeriod2"
 activation-group "report"
   when
-    ap : AccountPeriod2()
-    acc : Account()
+    $ap : AccountPeriod2()
+    $acc : Account()
   then
-    System.out.println( acc.accountNo +
-                      " : " + acc.balance );
+    System.out.println( $acc.accountNo +
+                      " : " + $acc.balance );
 end
 ----
 
diff --git 
a/kogito-docs/doc-content/apache-kie-kogito/src/main/asciidoc/drl/chap-kogito-using-drl-rules.adoc
 
b/kogito-docs/doc-content/apache-kie-kogito/src/main/asciidoc/drl/chap-kogito-using-drl-rules.adoc
index cccc14786..0d49e8b56 100644
--- 
a/kogito-docs/doc-content/apache-kie-kogito/src/main/asciidoc/drl/chap-kogito-using-drl-rules.adoc
+++ 
b/kogito-docs/doc-content/apache-kie-kogito/src/main/asciidoc/drl/chap-kogito-using-drl-rules.adoc
@@ -2282,7 +2282,7 @@ NOTE: The format `forall( p1 p2 p3 ...)` is equivalent to 
`not( p1 and not( and
 
 --
 
-`accumulate`::
+`accumulate` (`acc`)::
 Use this to iterate over a collection of objects, execute custom actions for 
each of the elements, and return one or more result objects (if the constraints 
evaluate to `true`). You can use predefined functions in your `accumulate` 
conditions or implement custom functions as needed. You can also use the 
abbreviation `acc` for `accumulate` in rule conditions.
 +
 --


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to