Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# 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.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Business Studio™ - BPM Edition

Copyright © 2015-2023. Cloud Software Group, Inc. All Rights Reserved.