> 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/documentation/documentation-en/budowanie-aplikacji/logika-biznesowa/scriptcode/wprowadzenie-do-scriptcode.md).

# Introduction to ScriptCode

## What is ScriptCode

**ScriptCode** is a mechanism available on the platform **Eximee**, which enables the creation of business logic in the form of **JavaScript scripts** executed on the server side. Thanks to this solution, dynamic data processing, form validation, value formatting, and integration with external REST services are possible – **without the need to write backend code**.

In practice, this means that developers and process configurators can flexibly extend the functionality of the Eximee application while maintaining consistency with the data model and BPMN processes.

***

## Key capabilities of ScriptCode

ScriptCode enables, among other things:

* **Processing input and output data** from forms, services, and BPMN processes.
* **Data validation** for users using rules and business logic.
* **Formatting and presenting values** in the user interface.
* **Integration with external services** through REST API (\[RestApi] – Calling external REST services).

Scripts are executed on the Eximee server, which guarantees security and data consistency throughout the entire processing cycle.

***

## Use of ScriptCode in the Eximee platform

ScriptCode is used in various platform artifacts:

| Artifact                                   | Description                                                                               |
| ------------------------------------------ | ----------------------------------------------------------------------------------------- |
| **Scripts (`scriptService`)**              | They are responsible for populating form components or processing input and output data.  |
| **Script validators (`validationScript`)** | They implement data validation logic at the form or process level.                        |
| **Formatters**                             | They are responsible for how data is presented and formatted in the user interface.       |
| **Script tasks (`scriptTask`)**            | Executed within BPMN processes, they allow the implementation of custom business actions. |

***

## Advantages of using ScriptCode

* 🧠 **Flexibility** – easy changes to business logic without the need to modify backend code.
* ⚙️ **Integration** – the ability to communicate with external systems via REST API.
* 🧩 **Modularity** – different types of artifacts can work together within a single application.
* 🔒 **Security and control** – executing scripts on the server side minimizes the risk of client-side manipulation.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/logika-biznesowa/scriptcode/wprowadzenie-do-scriptcode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
