> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stratumn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Task

> Task in a process

# Task

So far, we have used only tasks of undefined types, though BPMN provides the opportunity to work with task types just as it does for event types. Primarily, task types are intended to model processes that are technically executable. Task types are applied infrequently in practice. We know from experience, however, that task types can be particularly useful when modeling engineering requirements.

## Task types

Stratumn supports the following task types:

### Form action

<img src="https://mintcdn.com/stratumn/_7ghGbILOYM4ffi0/studio/bpmn/form-action.png?fit=max&auto=format&n=_7ghGbILOYM4ffi0&q=85&s=6b0c048feb9214bc90061edca9d3c58f" alt="Form action" width="150" height="126" data-path="studio/bpmn/form-action.png" />

In this case, the task is a form action. The user who needs to complete the task will be asked to fill in a form.
This form can be complexe, with multiple fields and validation. Data can be validated against a schema.

<img src="https://mintcdn.com/stratumn/_7ghGbILOYM4ffi0/studio/bpmn/form.png?fit=max&auto=format&n=_7ghGbILOYM4ffi0&q=85&s=fcaf281928d3c6013eb7818d60b0c0b8" alt="Form action" width="1908" height="957" data-path="studio/bpmn/form.png" />

### Data Importer

<img src="https://mintcdn.com/stratumn/4rAewZdM7szac3r3/studio/bpmn/table-action.png?fit=max&auto=format&n=4rAewZdM7szac3r3&q=85&s=537a3e1007991fcd540a99794dd9d92b" alt="Table action" width="165" height="136" data-path="studio/bpmn/table-action.png" />

Stratumn support the import, view and edition of table of data. You can create business rules based on line of the table.
The data importer task type is used to import data from an external source.

<Note>
  Stratumn only support the import of CSV and Excel file. Custom validation and remapping can be added.
</Note>

<img src="https://mintcdn.com/stratumn/4rAewZdM7szac3r3/studio/bpmn/table.png?fit=max&auto=format&n=4rAewZdM7szac3r3&q=85&s=de78e9e6ed47edabb09889592706acfe" alt="Data Importer" width="1900" height="801" data-path="studio/bpmn/table.png" />

### Data Editor

<img src="https://mintcdn.com/stratumn/4rAewZdM7szac3r3/studio/bpmn/table-action.png?fit=max&auto=format&n=4rAewZdM7szac3r3&q=85&s=537a3e1007991fcd540a99794dd9d92b" alt="Table action" width="165" height="136" data-path="studio/bpmn/table-action.png" />

Like in the data importer, the data editor task type is used to edit a table of data.

For each line of the table, you can define a business rule, trigger an external process or call a function.

### Robot

<img src="https://mintcdn.com/stratumn/4rAewZdM7szac3r3/studio/bpmn/robot.png?fit=max&auto=format&n=4rAewZdM7szac3r3&q=85&s=a584577455e3f34cd31a50232ce7f803" alt="Robot" width="193" height="147" data-path="studio/bpmn/robot.png" />

A robot task type is used to operate autonomous task. When the task need to be executed, it will be instantiated and executed instantly.
