# TaskActivityStateType (Complex Type)

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

Describes the task work state: what has been processed, what is being processed and what is yet to be done. Useful for work distribution as well as for stateful suspend+resume feature.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
localRoot | property ActivityPathType | [0,1] | In what part of the activity tree the execution in this task should start.
localRootActivityExecutionRole | property ActivityExecutionRoleType | [0,1] | Role of the task in the local root activity execution.
activity | container ActivityStateType | [0,1] | Work state for individual activities, organized in the tree.
tree | container ActivityTreeStateType | [0,1] | Describes the state of an activity tree.

- ### Items

  - #### localRoot

    Flags: RAM,runtime

    Multiplicity: [0,1]

    In what part of the activity tree the execution in this task should start.

  - #### localRootActivityExecutionRole

    Flags: RAM,runtime,AVals:2

    Multiplicity: [0,1]

    Role of the task in the local root activity execution.

  - #### activity

    Flags: elaborate,RAM,runtime

    Multiplicity: [0,1]

    Work state for individual activities, organized in the tree.

  - #### tree

    Flags: elaborate,RAM,runtime

    Multiplicity: [0,1]

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