> For the complete documentation index, see [llms.txt](https://zanflow-app.gitbook.io/zanflow-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zanflow-app.gitbook.io/zanflow-docs/process/design-workflow/configuring-task.md).

# Configuring  Task

## What is a Task?

A task is an atomic activity within a process flow. You create a task when the activity cannot be broken down to a finer level of detail. Generally, a person or applications will perform the task when it is executed. Zanflow uses two types of task-User Task and Script Task

## User Task &#x20;

A User Task represents that a human performer performs the Task with the use of a software application.

![](https://2604032230-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO2JgudTr1vZ-fAL48B%2F-MP7x5x9t0EQd_ddIx_b%2F-MP80-lBXIvntKspm81u%2Fusertask.png?alt=media\&token=d73dddeb-589b-401b-91ee-5d79d2ec9f58)

## Script Task

A Script Task is executed by a business process engine. The task defines a script that the engine can interpret. When the task begin, the engine will execute the script. The Task will be completed when the script is completed.

&#x20;                                                     <img src="https://2604032230-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO2JgudTr1vZ-fAL48B%2F-MP7x5x9t0EQd_ddIx_b%2F-MP8eXD0poxMPFJHptan%2Fscripttask.png?alt=media&amp;token=3ef23c94-3cf5-413d-87ee-a53c5a6274ea" alt="" data-size="original">&#x20;

## Configuring User task

### General tab:

1. Click on the **User task icon** in the workflow.
2. Under **General Tab**, Enter the Step Name and Step Label Name in the right side form.
3. Choose to whom you want to assign the step in the **Step Assignment** drop down box.
4. Select the assigned user or group name.
5. Enter a brief description (optional )of the task **in Task Subject** with description and zf.variablename.

![](https://2604032230-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO2JgudTr1vZ-fAL48B%2F-MP7x5x9t0EQd_ddIx_b%2F-MP83bLN55g8bm7dy8oF%2Ftaskassignment.png?alt=media\&token=4e1f1a14-33e6-4b14-bbac-4b228f3ca9fd)

### Response tab:

1. Under **Response Tab**, you can choose the button you want to display in the form for Manager Approval.
2. Choose **Approve** and **Reject** from the **Step response field.**
3. Click on Approve to change the **response properties.**
4. Enable comments to make it mandatory for the Manager to

   comment about the response.

![Select Response buttons ](https://2604032230-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO2JgudTr1vZ-fAL48B%2F-MP7x5x9t0EQd_ddIx_b%2F-MP8VdHU4zEhgWKmuIBO%2Fleaveresponse.png?alt=media\&token=ca921d67-db02-4d29-bf74-847b23fb382b)

## Configuring Script Task

You can configure Script task using groovy script.
