A Script node is a node that you can use in a cognition to return a result that is calculated by a General script created outside the cognition via the Scripts tool.
Tip: Prior to implementing a script in a cognition, you should test it using the Scripts tool to ensure that it returns the expected results.
The inputs for a Script node must correspond to the type of inputs expected by the General script.
The output of a Script node is determined by the General script, which can produce both the output to use as the value and the output to use as the score of a predicted value.
The Properties window for a Script node contains the items that are described in the following table.
Item |
Description |
Notes |
---|---|---|
|
Specifies the General script that will run when the cognition is executed. | Select |
Additional sections corresponding to the inputs expected by the General script. | Specifies the values that will be used in the General script to calculate a result. |
The number of sections displayed in the Properties window is determined by the number of inputs configured in the specified General script. The value that you specify should correspond to the type of input expected by the General Script (i.e., List Values or a single value that is Numeric, Character, Boolean, or Date/Time). |
Copyright © 2018 General Electric Company. All rights reserved.