# Manipulating a task

## Create a new task

1. Create a new task by one of the following means :

- Click on an empty spot in the window in the navigation desktop. Select the New Task command under the Edit Menu

- Select the Task icon in the vertical toolbar, and then click onto an empty spot in the window

- Click on an empty spot in the window. Right click and then select the New Task command

2. You can then m odify the attributes of the task in the opening window.
A new task :

- has "do something" as default name.
- is assumed interactive, mandatory, without precondition, without feedback, without visible cardinality (min and max) and it is not terminal.

## Create a new sub-task

1. Create a new sub-task by one of the following means :

- Click on a task in the window in the navigation desktop. Select the New Task command under the Edit Menu.

- Select the Task icon in the vertical toolbar, and then click onto the task in the navigation desktop. Then the decomposition of the task will contain the new sub-task.

- Click on a task in the navigation desktop. Right click and then select the New Task command. Then the decomposition of the task will contain the new sub-task.

2. Then, modify the sub-task as it was a task.

The compound task remains selected (its border may change if it becomes composite). When a sub-task is created, the frame associated to this sub-task is displayed to visualise the decomposition. The user may use the tree view too.

Select a task

To select a task, click it with the left mouse button. It can also be selected by clicking it in the task hierarchy window.

When a task is selected, it will be highlighted in the navigation desktop window, in the task hierarchy window. Its attributes will be shown in the task attributes window, and its comments in the commentary window.

Modify a task

An existing task may be modified with the Edit command in the Edit menu or in the contextual menu (click right). The Edit dialog box is then opened and allows the user modifying the task attributes.
When the user gives a name that is already used for another task, a message is displayed to the user :

- Either the action is cancelled and the user renames the new task.
- Or the action is confirmed and the user copies the attributes defined for the previous task that has the same name.

PUT HERE A NEW EDIT WINDOW WITHOUT THE "EDIT SEMANTICS" BUTTON.

Delete a task

You can delete a task that is selected. The deletion erases definitely the task, and its decomposition, from the model.
If the task is linked to other tasks, the links are also deleted.