# Script task (scriptTask)

{% hint style="info" %}
The functionality is available from version 2.3316.0 of the Eximee platform.
{% endhint %}

{% hint style="warning" %}
Availability of the functionality depends on the license and may not be available in all deployments.
{% endhint %}

Script tasks (so-called handlers) are used to invoke business logic within a process. A list of all defined script tasks is available in the tab ***Library*** → ***Script tasks***.

<figure><img src="/files/43e6b7ebaca48f4f64827c8c3f2dfdf341e99ace" alt=""><figcaption><p><em><strong>Figure 1.</strong> The "Script tasks" tab with an example task</em></p></figcaption></figure>

The script code should be written in **plain JavaScript (ES6 or earlier)**. The code must be compatible with the version of the JavaScript engine **provided by Rhino** *(*[*http://mozilla.github.io/rhino/compat/engines.html*](http://mozilla.github.io/rhino/compat/engines.html)*)***.** Additionally **have been disabled** such elements as "eval".

## Creating a script task <a href="#zadaniaskryptowe-scripttask-tworzeniezadaniaskryptowego" id="zadaniaskryptowe-scripttask-tworzeniezadaniaskryptowego"></a>

After clicking the **Add a script task**, we will be taken to the script editor window (more information in [Script task editor](/documentation/documentation-en/budowanie-aplikacji/logika-biznesowa/scriptcode/zadanie-skryptowe-scripttask/edytor-zadan-skryptowych.md)).

The edit window in the repository allows you to modify the content of the script task.

<figure><img src="/files/7a56d8ed0443adcbfa9f378340fe63cc287be7fe" alt=""><figcaption><p><em><strong>Figure 2.</strong> Script task edit window</em></p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/logika-biznesowa/scriptcode/zadanie-skryptowe-scripttask.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
