This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/master by this push:
new f4e44107d6 HOP-3967 corrected step to transform references, updated
import statements
new 345394f6e1 Merge pull request #1513 from bamaer/HOP-3967
f4e44107d6 is described below
commit f4e44107d6194b420650eb5a7cc95ea5687fc9b2
Author: Bart Maertens <[email protected]>
AuthorDate: Tue May 31 19:58:29 2022 +0200
HOP-3967 corrected step to transform references, updated import statements
---
.../ROOT/pages/pipeline/transforms/rulesaccumulator.adoc | 8 ++++----
.../ROOT/pages/pipeline/transforms/rulesexecutor.adoc | 12 ++++++------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git
a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/rulesaccumulator.adoc
b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/rulesaccumulator.adoc
index 86f18f6ed6..9dc5910228 100644
---
a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/rulesaccumulator.adoc
+++
b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/rulesaccumulator.adoc
@@ -24,10 +24,10 @@ under the License.
The Rules Accumulator collects incoming rows and executes them against a rule
set. This may be useful to determine the answer to a question or otherwise
analyze a dataset.
-https://www.drools.org/[Drools] is the present rule engine implementation and
its
https://docs.drools.org/7.68.0.Final/drools-docs/html_single/index.html#_droolslanguagereferencechapter[rule
language] can be referenced for use by this step.
https://docs.drools.org/7.68.0.Final/drools-docs/html_single/index.html#_welcome[Drools
documentation]
+https://www.drools.org/[Drools] is the present rule engine implementation and
its
https://docs.drools.org/7.68.0.Final/drools-docs/html_single/index.html#_droolslanguagereferencechapter[rule
language] can be referenced for use by this transform.
https://docs.drools.org/7.68.0.Final/drools-docs/html_single/index.html#_welcome[Drools
documentation]
== Details
-Once all incoming rows have been collected by the Rules Accumulator step (e.g.
- the previous step shuts down) the rows are transformed into Rules.Row objects
and passed into the rules engine to be executed against the given rule set.
+Once all incoming rows have been collected by the Rules Accumulator transform
(e.g. - the previous transform shuts down) the rows are transformed into
Rules.Row objects and passed into the rules engine to be executed against the
given rule set.
Rules.Row is defined as a key / value Map of fields where key is the name of
the field and value is the value of the field; as well as the externalSource
boolean property to indicate whether the Rules.Row object was created in the
rule set or injected from an external source.
@@ -57,7 +57,7 @@ Rules result tab defines the layout of the Rules output
fields.
|===
== Example
-All Rule Definitions should contain "import
org.pentaho.di.trans.steps.rules.Rules.Row;" to give access to the Rules.Row
class.
+All Rule Definitions should contain "import
org.apache.hop.pipeline.transforms.drools.Rules.Row;" to give access to the
Rules.Row class.
For the input with a row meta: name (String), position (Integer), color
(String); a Rules.Row object will be created for each row with a Map containing
those fields.
@@ -114,4 +114,4 @@ Rules.Row objects can be checked as in the above's left
hand side.
Rules.Row objects can be created for the data stream as in the above's right
hand side.
-The step can be told what fields to pickup from the generated row objects by
defining the field Map's name in the steps Results tab. Type conversions can be
applied by setting the Result column type as well.
\ No newline at end of file
+The transform can be told what fields to pickup from the generated row objects
by defining the field Map's name in the transform's Results tab. Type
conversions can be applied by setting the Result column type as well.
\ No newline at end of file
diff --git
a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/rulesexecutor.adoc
b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/rulesexecutor.adoc
index e0346c68d2..1db2d96a1c 100644
---
a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/rulesexecutor.adoc
+++
b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/rulesexecutor.adoc
@@ -22,12 +22,12 @@ under the License.
== Description
-The Rules Executor allows fields of incoming rows to be executed against a
rule set. This may be useful to determine additional information or route rows
onto another step.
+The Rules Executor allows fields of incoming rows to be executed against a
rule set. This may be useful to determine additional information or route rows
onto another transform.
-https://www.drools.org/[Drools] is the present rule engine implementation and
its
https://docs.drools.org/7.68.0.Final/drools-docs/html_single/index.html#_droolslanguagereferencechapter[rule
language] can be referenced for use by this step.
https://docs.drools.org/7.68.0.Final/drools-docs/html_single/index.html#_welcome[Drools
documentation]
+https://www.drools.org/[Drools] is the present rule engine implementation and
its
https://docs.drools.org/7.68.0.Final/drools-docs/html_single/index.html#_droolslanguagereferencechapter[rule
language] can be referenced for use by this transform.
https://docs.drools.org/7.68.0.Final/drools-docs/html_single/index.html#_welcome[Drools
documentation]
== Details
-For each row processed by the Rules Executor step each column is converted to
a _Rules.Column_ then injected into the rule engine and executed against the
rules set. _Rules.Column_ contains four properties:
+For each row processed by the Rules Executor transform each column is
converted to a _Rules.Column_ then injected into the rule engine and executed
against the rules set. _Rules.Column_ contains four properties:
_externalSource_: boolean property indicating if this Rules.Column was
injected from an external source (a field from a processed row)
@@ -37,7 +37,7 @@ _type_: type of data stored in payload (one of
ValueMetaInterface.typeCodes - Nu
_payload_: value of this field
-Results are generated by creating Rules.Column objects. The step is configured
to pick up these generated objects by name.
+Results are generated by creating Rules.Column objects. The transform is
configured to pick up these generated objects by name.
=== Rules Tab
@@ -62,7 +62,7 @@ Rules result tab defines the layout of the Rules output
fields.
|===
== Example
-All Rule Definitions should contain "import
org.pentaho.di.trans.steps.rules.Rules.Column;" to give access to the
Rules.Column class.
+All Rule Definitions should contain "import
org.apache.hop.pipeline.transforms.drools.Rules.Column;" to give access to the
Rules.Column class.
For the input row: fica_seed (Integer), hi (String), fica (Integer); three
Rules.Column objects will be created in the Rules Engine:
@@ -103,4 +103,4 @@ Rules.Column properties can be checked as in the above's
left hand side.
Rules.Column objects can be created for pickup as in the above's right hand
side.
-The step can be told to pickup a generated Rules.Column object by defining the
Rules.Column name in the steps Results tab. Type conversions can be applied by
setting the Result column type as well.
\ No newline at end of file
+The transform can be told to pickup a generated Rules.Column object by
defining the Rules.Column name in the transform's Results tab. Type conversions
can be applied by setting the Result column type as well.
\ No newline at end of file