Versions Compared

Key

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

...

  • writing or updating any data into in the database
  • an incoming message
  • due date and time occurrence
  • calling specified UI action
  • the Run Script activity processing within a workflow.

...

  1. database transaction interrupting.
  2. new system object creation.
  3. associative record creation (once the record is created, one more will be created in return).
  4. the context-dependant dependent value calculation,
  5. a configuration of the record creation initiated by incoming email (the incident is created upon receipt of an email), and so on.

In the server-side scripts, you can use native JavaScript and methods provided by server-side API.

...

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


...