Versions Compared

Key

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

...

This code simply maps the user's login name to the user's full name, and places the full name in a JavaScript variable called fullName. fullName will be available to the next action in our action sequence.

Warning
titleJavaScript Caveat

Generally in JavaScript, it is good practice (but not required) to declare JavaScript variables usiing 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. Like this:
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 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.

...