Versions Compared

Key

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

...

Note

To define the API class in a script, you need to specify it explicitly in script code, for example:

Code Block
languagejs
themeEclipse
linenumberstrue
var className = 'SimpleRecord';

If the class name is specified implicitly, then the class name need to be designated in other way, in comment as an example:

Code Block
languagejs
themeEclipse
linenumberstrue
var className = 'Simple' + 'Record';
// SimpleRecord
class SimpleAutoAssigner {

  /**
  * @constructor
  * @param {string} autoAssignedRuleId
  */
  constructor(autoAssignedRuleId) {
    this.autoAssignedRuleId = autoAssignedRuleId;
    this.assigner = this.__create();
    this.userId = this.assigner.getUserId();
    this.groupId = this.assigner.getGroupId();
  }
  //...

In the case of there is a code executed through the eval() function, then adding the string below at the start of the script will import all the API classes.

Code Block
languagejs
themeEclipse
linenumberstrue
// #import_all_types


...