# TaskActivityStateType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Describes the state of the activity or activities embedded in the task (and its subtasks - in the case of a root task).

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
localRoot | property ActivityPathType | [0,1] | Activity that is the local root for this task.
taskRole | property TaskRoleType | [0,1] | Role of the task in the run of the local root activity.
activity | container ActivityStateType | [0,1] | State of individual activities, organized in a tree.
tree | container ActivityTreeStateType | [0,1] | Describes the state of an activity tree.

- ### Items

  - #### localRoot

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Activity that is the local root for this task. I.e. what part of the activity tree is executed within this task.

  - #### taskRole

    Flags: RAM,runtime,AVals:2

    Multiplicity: [0,1]

    Role of the task in the run of the local root activity.

  - #### activity

    Flags: elaborate,RAM,runtime

    Multiplicity: [0,1]

    State of individual activities, organized in a tree. Rooted at local root activity.

  - #### tree

    Flags: elaborate,RAM,runtime

    Multiplicity: [0,1]

    Describes the state of an activity tree. Present only in the root task.