# Launching applications

If you do not want to start by launching the form only the application, then the first step to take will be setting **the start point** of the application (form or process).

## Setting the application start point

The start point can be set directly in the module **Applications** – in the tabs **Forms** or **Processes**.

{% hint style="info" %}
To correctly launch the application, it is necessary to first create the data model described in [Data model](/documentation/documentation-en/budowanie-aplikacji/model-danych.md).
{% endhint %}

### Setting the form as the application start point (recommended) and launching the application

As the start point, we can set one of the forms added to a given application. After entering the tab **Forms** we click the context menu of the appropriate request and select the option **Set start point**:

![Figure 1. Context menu with the option to set the request as the start point.](/files/4ace97621d9cd66194c482ec627a51734697795b)

{% hint style="warning" %}
Note! After changing the start request, an "invalidate cache" in webforms may be necessary (if the application has already been run before). To do this, run the following cURL command (replace USER and PASSWORD with the appropriate data):
{% endhint %}

{% code title="Invalidate cache" %}

```bash
curl -u USER:PASSWORD -X POST "http://webforms-dev.consdata.local/cache/invalidate?cacheType=PUBLISHED_TEMPLATE"
```

{% endcode %}

To launch an application, e.g. named wiki\_example\_app, use the following link:

```
https://example.link.demo/stkn=#/wiki_przyklad_app
```

When the application is launched, the **application**will be opened, which has been set as the start point.

### Setting the process as the start point and launching the application

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

In some cases, the application should start from a process that controls the logic of operation.

To set a process as the start point, after entering the tab **Processes** click the so-called "three-dot menu" and in the context menu of the appropriate process choose the option **Set start point**:

![Figure 2. Context menu with the option to set the process as the start point.](/files/093a719ac7bacd77dd7afa46f3c8a6cc4bea6d57)

If a process is set as the application start point instead of a request, additionally in the tab **Properties** of the form, go to the tab **Flows** and in the section [**Actions**](https://wiki.consdata.pl/display/IED/Akcje) define the following event:

* **Component handling the action:** e.g. *Trigger or Page*
* **Event type** *:* *depends on the selected component triggering the change*
* **Form action:** *START\_APPLICATION*
* **Application name:** the name of the application to be launched (the application will launch **process** set as the start point) or the name of the process to be started
* **Redirect to the next process step:** condition *JAVASCRIPT* - specifies whether automatic redirection to the next step should occur (*user task*); default value: *false.*

![Figure 3. Example of defining the START\_APPLICATION action triggered by clicking the Trigger.](/files/ffa756f80c4467a69a0f56e59092744a5a3dbd87)

*The application will be launched after the event handled by the START\_APPLICATION action is triggered.*


---

# 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/aplikacja-biznesowa/uruchamianie-aplikacji.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.
