JavaScript Exclusions

Certain facilities of standard JavaScript are not supported.

These are:

  • You cannot define functions in scripts: that is, the JavaScript function() method is not supported. An error saying Local method definition is not allowed is generated.
  • It is not regarded as good practice for scripts to be too large or to provide behavior which would be better and more clearly provided by the diagrammed business process. Scripts should provide only the necessary connections between the process, the services it uses, and work items.
  • The switch(){case: default:} statement is not supported.
  • JavaScript regular expressions are not supported.
  • The valueOf() method is not supported. You can achieve the same results by using toString() instead.
  • The Try/Catch statement is not supported.
  • The === operator is not supported
  • "in" is a reserved keyword in JavaScript and is not supported.
    Note: Note that braces, {..}, are required in an if statement and in for and while loops by the script editor, although they are only optional in JavaScript.

    Although braces are not compulsory in JavaScript if, for and while statements their use is in any case good practice.