Copilot commented on code in PR #4610:
URL:
https://github.com/apache/incubator-kie-docs/pull/4610#discussion_r4707281531
##########
kogito-docs/_artifacts/document-attributes-kogito-comm.adoc:
##########
@@ -10,6 +10,18 @@
:PRODUCT_VERSION: {COMMUNITY_VERSION}
:PRODUCT_VERSION_LONG: {COMMUNITY_VERSION_LONG}
+:DECISION_ENGINE: decision engine
+:DECISION_ENGINE_CAP: Decision engine
+:PROCESS_ENGINE: process engine
+:PROCESS_ENGINE_CAP: process engine
Review Comment:
`PROCESS_ENGINE_CAP` is used by `PROCESS_ENGINE_DOC` to form rendered
chapter titles, but this value starts lowercase while the `_CAP` convention and
`DECISION_ENGINE_CAP` use title case. As written, generated output will say
`process engine in Kogito` instead of `Process engine in Kogito`.
##########
kogito-docs/doc-content/apache-kie-kogito/src/main/asciidoc/decision-tables/chap-kogito-using-spreadsheet-decision-tables.adoc:
##########
@@ -417,6 +435,8 @@ Example: `AUTO-FOCUS true`
|A Boolean value, applicable only to rules within rule flow groups or agenda
groups. When this option is set to `true`, the next time the ruleflow group for
the rule becomes active or the agenda group for the rule receives a focus, the
rule cannot be activated again until the ruleflow group is no longer active or
the agenda group loses the focus. This is a stronger version of the `no-loop`
attribute, because the activation of a matching rule is discarded regardless of
the origin of the update (not only by the rule itself). This attribute is ideal
for calculation rules where you have a number of rules that modify a fact and
you do not want any rule re-matching and firing again.
Example: `LOCK-ON-ACTIVE true`
+
+// RULEFLOW-GROUP (column label prefix R) is intentionally not listed here.
Kogito uses rule units instead of rule flow groups.
Review Comment:
This omission is inconsistent with the Kogito DRL chapter, which documents
`ruleflow-group` as a legacy attribute that remains available for backward
compatibility (see `drl/chap-kogito-using-drl-rules.adoc:3085-3101`). Omitting
`RULEFLOW-GROUP` from the spreadsheet reference makes an existing supported
label undiscoverable; please document its compatibility status rather than
implying that rule units replace support for it.
##########
kogito-docs/doc-content/apache-kie-kogito/src/main/asciidoc/decision-tables/chap-kogito-using-spreadsheet-decision-tables.adoc:
##########
@@ -382,6 +399,7 @@ Example: `DATE-EXPIRES "4-Oct-2018"`
Example: `NO-LOOP true`
+// AGENDA-GROUP (column label prefix G) is intentionally not listed here.
Kogito uses rule units instead of agenda groups.
Review Comment:
This omission is inconsistent with the Kogito DRL chapter, which documents
`agenda-group` as a legacy attribute that remains available for backward
compatibility (see `drl/chap-kogito-using-drl-rules.adoc:3085-3096`). Omitting
`AGENDA-GROUP` from the spreadsheet reference makes an existing supported label
undiscoverable; please document its compatibility status rather than implying
that rule units replace support for it.
##########
kogito-docs/doc-content/apache-kie-kogito/src/main/asciidoc/drl/chap-kogito-using-drl-rules.adoc:
##########
@@ -386,9 +387,9 @@ unit MonitoringService;
rule "tooHot"
when
- $temp : Temperature( value >= 80 ) from temperature
+ $temp : /temperature[value >= 80]
then
- alertData.add(new Alert("HIGH", "Temperature exceeds threshold: " +
temp.value));
+ alertData.append(new Alert("HIGH", "Temperature exceeds threshold: " +
temp.value));
Review Comment:
This rule binds the matching temperature as `$temp`, but the consequence
still dereferences `temp.value`. The example therefore refers to an undefined
variable and will not compile; use `$temp.value` here (and in the duplicated
example above).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]