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 4033b42c637..0143ef7f0ce 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 @@ -161,7 +161,7 @@ endif::[] rule "All full-time employees have red ID badges" when forall( $emp : Employee( type == "fulltime" ) - Employee( this == $emp, badgeColor = "red" ) ) + Employee( this == $emp, badgeColor == "red" ) ) then // True, all full-time employees have red ID badges. end @@ -176,7 +176,7 @@ To state that all facts of a given type in the working memory of the {RULE_ENGIN ---- rule "All employees have red ID badges" when - forall( Employee( badgeColor = "red" ) ) + forall( Employee( badgeColor == "red" ) ) then // True, all employees have red ID badges. end 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 9aba0fb6035..e1c85f980ac 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 @@ -2062,7 +2062,7 @@ image::language-reference/forall.png[align="center"] rule "All full-time employees have red ID badges" when forall( $emp : /employees[ type == "fulltime" ] - /employees[ this == $emp, badgeColor = "red" ] ) + /employees[ this == $emp, badgeColor == "red" ] ) then // True, all full-time employees have red ID badges. end @@ -2077,7 +2077,7 @@ To state that all facts of a given type in the working memory of the {RULE_ENGIN ---- rule "All employees have red ID badges" when - forall( /employees[ badgeColor = "red" ] ) + forall( /employees[ badgeColor == "red" ] ) then // True, all employees have red ID badges. end