Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning
titleJavaScript Caveat

Generally in JavaScript, it is good practice (but not required) to declare JavaScript variables usiing using the JavaScript var keyword. For instance:
var myVar = "Pentaho Inc.";
However JavaScript variables in an JavaScript action sequence that are going to be identified as outputs of the action sequence should never be declared with the JavaScript var keyword. This would be the correct way to do it:
myVar = "Pentaho Inc.";
If you find that your JavaScript variable is not showing up as an output parameter, go back and make sure that you haven't declared with the variable with the{{var}} keyword.

We still need to identify name from the Process Inputs tree control as an input to our JavaScript action. Click on the Add control in the Script Inputs editor, and select name.
We also need to identify the fullName variable from our JavaScript code as an output from our JavaScript action. To do this, click in the Script Outputs editor, type in fullName, and identify its type as string.

...