> 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/interfejs-uzytkownika/eximee-dashboard/konfiguracja/lista-spraw.md).

# Case list

{% hint style="info" %}
This page describes the case list displayed as tiles, available in the menu as **Case list**. The tabular list of all cases is configured differently—see [Configuring the list of all cases](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/eximee-dashboard/konfiguracja/lista-wszystkich-spraw.md).
{% endhint %}

## Configuring case visibility and data

| Item                                                           | Where to configure it                                                                                                     |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| Case visibility for a group (`PROCESS_DEFINITION_KEY_MAPPING`) | Outside Designer: an environment variable in the service configuration `Router`. How it is set depends on the deployment. |
| Additional visibility for a specific case (`setAccessGroups`)  | In Designer: a Service Task that invokes a script task, or the PageService of a form attached to a User Task.             |
| Case label (`PROCESS_DASHBOARD_DESCRIPTION`)                   | In Designer: a Script Task in the process                                                                                 |
| Data in the middle of the tile (`PROCESS_DASHBOARD`)           | In Designer: a Script Task in the process                                                                                 |

{% hint style="warning" %}
Configuration `PROCESS_DEFINITION_KEY_MAPPING` is managed outside Designer. If a process is not visible in the case list to any group, check whether this configuration contains its definition key. Ask the deployment administrator to verify and, if necessary, update the configuration.
{% endhint %}

## Case list vs. task list

|               | Task list                                                            | Case list                                                                                               |
| ------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| Contents      | User tasks: to be claimed and claimed                                | Cases, i.e. process instances                                                                           |
| Visibility    | Users in groups specified in `candidateGroups` of the BPMN user task | Users in groups specified in `PROCESS_DEFINITION_KEY_MAPPING` or granted access using `setAccessGroups` |
| Configuration | In Designer: `candidateGroups` in the user task                      | In the `Router` service configuration, and in a script using `setAccessGroups`                          |

Assigning a process to a group in `PROCESS_DEFINITION_KEY_MAPPING` does not give that group access to tasks in that process. Access to a task also does not grant access to the case in the case list.

## Configuring case visibility in the case list

A user can see a case in the list when the following condition is met **at least one** of the following conditions:

1. the case's process definition key (the BPMN process ID) is assigned to one of the user's groups in `PROCESS_DEFINITION_KEY_MAPPING`,
2. the case has a group assigned by a script (`setAccessGroups`) that the user belongs to.

### PROCESS\_DEFINITION\_KEY\_MAPPING (deployment configuration)

The parameter is the environment variable `PROCESS_DEFINITION_KEY_MAPPING` for the Router service. Its value is a comma-separated list of entries in the format `group:process_definition_key`, for example:

```
GRUPA_DORADCOW:wniosekKredytowy,GRUPA_DORADCOW:wniosekRachunek
```

The value before the colon is the user group, and the value after it is the process definition key, that is, the BPMN process ID (the process's `id` attribute). Multiple keys can be assigned to a single group.

### setAccessGroups (low-code configuration)

The call assigns **additional** groups to a specific case, allowing them to see it in the list. This is only possible in the context of a process—from a script called by the process through a Service Task, or from a form's PageService attached to a User Task.

```js
function callService(context) {
    // ...
    api.process.v1.permissions.setAccessGroups(["GRUPA_OPIEKUNOW", "GRUPA_KIEROWNIKOW"]);
    // ...
}
```

The argument is a list of group names. The method overwrites all previously assigned groups: if the group `GROUP_TEST`had access and `setAccessGroups(["GROUP_1", "GROUP_2"])`is called, only `GROUP_1` and `GROUP_2`will have access. To reset the groups, call the method with an empty list: `setAccessGroups([])`.

The group must already have permission to view the case list: `feature_process_list`. The method does not work when called through `api.process.v1.byInstanceId`.

{% hint style="warning" %}
The mechanism only grants **additional** permissions. It does not remove permissions granted by `PROCESS_DEFINITION_KEY_MAPPING`. It only overwrites groups previously assigned by `setAccessGroups`.
{% endhint %}

## Configuring the case label

You can configure the label displayed on the left side of a tile for a case on the Eximee Dashboard page, available, for example, at:

```
ROUTER_HOST:8083/router-ui/#/processes
```

To configure the label, create a new task of type *ScriptTask* in the BPMN process and connect it to the process:

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-bc7b36abbf1b277967560fa39b1e4544461e9f1a%2F1-Konfiguracja-zadania%20-ScriptTask.png?alt=media" alt=""><figcaption><p>Figure 1. Configuring the "ScriptTask" task</p></figcaption></figure>

In the configuration [of the script task](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/proces-biznesowy/zadania-automatyczne/zadanie-skryptowe-bpms-scripttask.md) set the following:

* **Script Format**: groovy
* **Script Type**: Inline Script
* **Script**: Groovy code here that sets the variable **PROCESS\_DASHBOARD\_DESCRIPTION** to a text label value, e.g.

```
execution.setVariable("PROCESS_DASHBOARD_DESCRIPTION", "Currency loan application");
```

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-3b7715df7a343038339878ced5767ed198fc6c77%2F2-Lista-spraw.png?alt=media" alt=""><figcaption><p>Figure 2. Case list</p></figcaption></figure>

When the process is complete (has the status *COMPLETED*), the following text is displayed: *Case completed*.

When the process is not complete and the variable **PROCESS\_DASHBOARD\_DESCRIPTION** has not been set, the label is not displayed.

In other cases, the text specified in **PROCESS\_DASHBOARD\_DESCRIPTION**, which in this example is "Process started" and "Form", is displayed.

{% hint style="info" %}
The variable can be set multiple times in subsequent process steps. The tile displays the most recently set value, so the label can describe the current stage of the case.
{% endhint %}

## Configuring data display

You can configure the data displayed in the middle section of the tile on the Eximee Dashboard page, located, for example, at:

```
ROUTER_HOST:8083/router-ui/#/processes
```

To configure which data to display in the middle section of the tile, create a new task of type *ScriptTask* in the BPMN process and connect it to the process:

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-f153a8a7563c0cca7f80e6e387fd50f4a9d06114%2F3-Konfiguracja-zadania%20-ScriptTask.png?alt=media" alt=""><figcaption><p>Figure 3. Configuring the "ScriptTask" task</p></figcaption></figure>

In the configuration [of the script task](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/proces-biznesowy/zadania-automatyczne/zadanie-skryptowe-bpms-scripttask.md) set the following:

* **Script Format**: groovy
* **Script Type**: Inline Script
* **Script**: Groovy code here that sets the variable **PROCESS\_DASHBOARD** to a configuration map for the right-hand side of the tile.

You can add label-value pairs to be displayed in the case list on the Eximee Dashboard.

Remember that the keys must have unique values.

You can pass literals or process variables as map values using:

```
execution.getVariable("NAZWA_ZMIENNEJ");
```

Example code to populate the configuration:

```js
execution.setVariable("PROCESS_DASHBOARD", [
"Label1": "Value1",
"Label2": execution.getVariable("zmienna1")
]);
```

You can also specify the order in which variables are displayed by prefixing the key with a number in square brackets, which is used to sort the variables, e.g. "\[1]Label". The number is not displayed, and variables without a number are placed at the end. For example, the map:

```js
execution.setVariable("PROCESS_DASHBOARD", [
 "[3]A": "A",
 "B": "B",
 "[1]C": "C"
]);
```

will be displayed as key-value pairs in the order of labels C, A, B.

## Example of a complete configuration

### Assumptions

A process with the identifier `wniosekKredytowy` handles loan applications. Requirements:

* advisors (group `GRUPA_DORADCOW`) can see cases for this process in the case list and perform tasks in the task list,
* managers (group `GRUPA_KIEROWNIKOW`) can see cases for this process in the case list, but cannot perform tasks.

### Deployment configuration (outside Designer)

The `PROCESS_DEFINITION_KEY_MAPPING` must contain the following entry:

```
GRUPA_DORADCOW:wniosekKredytowy
```

This allows advisors to see all cases for the process `wniosekKredytowy`. Managers have no entry, so access is granted to them by the process itself (the “Grant visibility to managers” element).

### Process configuration in Designer

Process elements, in execution order:

| Process element              | Type         | What it does                                                                              |
| ---------------------------- | ------------ | ----------------------------------------------------------------------------------------- |
| Set case description         | Script Task  | Sets the label and data displayed on the case tile                                        |
| Grant visibility to managers | Service Task | Calls a script that grants the case access to the group `GRUPA_KIEROWNIKOW`               |
| Review application           | User Task    | Task assigned to the group `GRUPA_DORADCOW` (`candidateGroups`), visible in the task list |
| Update case description      | Script Task  | Changes the tile label to reflect the case’s current stage                                |

Example script for setting the case description in a Script Task:

```js
execution.setVariable("PROCESS_DASHBOARD_DESCRIPTION", "Cash loan application");
execution.setVariable("PROCESS_DASHBOARD", [
    "[1]Application number": execution.getVariable("start.formInstanceNumber"),
    "[2]Client": execution.getVariable("clientName"),
    "[3]Status": "Submitted"
]);
```

Script snippet for granting visibility to managers, executed by a Service Task:

```js
api.process.v1.permissions.setAccessGroups(["GRUPA_KIEROWNIKOW"]);
```

Example script for updating the case description in a Script Task:

```js
execution.setVariable("PROCESS_DASHBOARD_DESCRIPTION", "Application reviewed");
```


---

# 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/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/eximee-dashboard/konfiguracja/lista-spraw.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.
