To define the API class in a script, you need to specify it explicitly in script code, for example: Code Block |
---|
language | js |
---|
theme | Eclipse |
---|
linenumbers | true |
---|
| 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 |
---|
language | js |
---|
theme | Eclipse |
---|
linenumbers | true |
---|
| 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 |
---|
language | js |
---|
theme | Eclipse |
---|
linenumbers | true |
---|
| // #import_all_types |
|