> For the complete documentation index, see [llms.txt](https://docs.eximee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eximee.com/budowanie-aplikacji/logika-biznesowa/scriptcode/zadanie-skryptowe-scripttask.md).

# Zadanie skryptowe

{% hint style="info" %}
Funkcjonalność jest dostępna od wersji 2.3316.0 platformy Eximee.
{% endhint %}

{% hint style="warning" %}
Dostępność funkcjonalności zależy od licencji i może nie być dostępna we wszystkich wdrożeniach.
{% endhint %}

Zadania skryptowe (tzw. handlery) służą do wywołania logiki biznesowej w ramach procesu. Lista wszystkich zdefiniowanych zadań skryptowych dostępna jest w zakładce ***Biblioteka*** → ***Zadania skryptowe***.

<figure><img src="https://1082717226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2FljuKGFM3xWAbhheBygV4%2Fimage.png?alt=media&amp;token=a4a082e1-9d6c-4e23-8363-99dd686ac55f" alt=""><figcaption><p><em><strong>Ilustracja 1.</strong> Zakładka "Zadania skryptowe" z przykładowym zadaniem</em></p></figcaption></figure>

Kod skryptów powinien być napisany w **czystym JavaScript (w wersji ES6 lub nowszej)**. Kod musi być kompatybilny z wersją silnika Javascript **dostarczonego przez Rhino** *(*[*http://mozilla.github.io/rhino/compat/engines.html*](http://mozilla.github.io/rhino/compat/engines.html)*)***.** Dodatkowo **zostały wyłączone** takie elementy jak "eval".

## Tworzenie zadania skryptowego <a href="#zadaniaskryptowe-scripttask-tworzeniezadaniaskryptowego" id="zadaniaskryptowe-scripttask-tworzeniezadaniaskryptowego"></a>

Po kliknięciu przycisku **Dodaj zadanie skryptowe**, zostaniemy przeniesieni do okna edytora skryptu (więcej informacji w [Edytor zadań skryptowych](/budowanie-aplikacji/logika-biznesowa/scriptcode/zadanie-skryptowe-scripttask/edytor-zadan-skryptowych.md)).

Okno edycji w repozytorium pozwala na zmianę treści zadania skryptowego.

<figure><img src="https://1082717226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2FkAm2gtKhzef9IyzjlNiQ%2Fimage.png?alt=media&amp;token=fdc808e3-62aa-43f8-81c7-66c91b165f84" alt=""><figcaption><p><em><strong>Ilustracja 2.</strong> Okno edycji zadania skryptowego</em></p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
