# ActivityStateType (Complex Type)

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

Describes the state of an activity.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
identifier | property string | [0,1] | Identifier of the activity.
realizationState | property ActivityRealizationStateType | [0,1] | State of the activity realization: in progress local, in progress delegated, complete.
resultStatus | property OperationResultStatusType | [0,1] | Operation result status of this activity.
progress | container ActivityProgressType | [0,1] | Progress of this activity.
statistics | container ActivityStatisticsType | [0,1] | Statistical information related to activity execution.
bucketing | container ActivityBucketingStateType | [0,1] | Information about the bucket processing within the activity.
counters | container ActivityCounterGroupsType | [0,1] | Counters related to the execution of the activity, grouped into related categories.
reports | container ActivityReportsType | [0,1] | Reports related to activity execution.
workState | container AbstractActivityWorkStateType | [0,1] | Work (business) state of the activity.
persistence | property ActivityStatePersistenceType | [0,1] | How much is this state information persistent?
activity | container ActivityStateType | [0,-1] | Work state of child activities.

- ### Items

  - #### identifier

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Identifier of the activity.

  - #### realizationState

    Flags: RAM,runtime,AVals:4

    Multiplicity: [0,1]

    State of the activity realization: in progress local, in progress delegated, complete.

  - #### resultStatus

    Flags: RAM,runtime,AVals:8

    Multiplicity: [0,1]

    Operation result status of this activity. TODO

  - #### progress

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Progress of this activity. Relevant for worker and standalone tasks. (Can be copied to coordinator e.g. if workers are deleted.)

  - #### statistics

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Statistical information related to activity execution.

  - #### bucketing

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Information about the bucket processing within the activity.

  - #### counters

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Counters related to the execution of the activity, grouped into related categories. One of the categories are counters needed to implement thresholds for policy rules. Note: The counters may be moved to separate repository object later to improve performance.

  - #### reports

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Reports related to activity execution.

  - #### workState

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Work (business) state of the activity.

  - #### persistence

    Flags: RAM,runtime,AVals:3

    Multiplicity: [0,1]

    How much is this state information persistent?

  - #### activity

    Flags: elaborate,RAM,runtime

    Multiplicity: [0,-1]

    Work state of child activities.