# TaskWorkStateType (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
--- | --- | --- | ---
$itemDefinition.Name.LocalPart | container WorkBucketType | [0,-1] | Current buckets of work.
$itemDefinition.Name.LocalPart | property int | [0,1] |
$itemDefinition.Name.LocalPart | property boolean | [0,1] |

- ### Items

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Current buckets of work. Some buckets might be present implicitly: if a bucket with sequence number of N is present, it is expected that all unlisted buckets with numbers lower than N are either complete (for coordinator and standalone tasks) or not relevant (for worker tasks). In a similar way, if no free bucket is available and we are not at the end it is expected that some free buckets are yet to be created (for coordinator tasks).

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]