# WorkBucketType (Complex Type)

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

Description of a state and content of a work bucket. Buckets are used e.g. to distribute workload in multi-node tasks or to implement stateful suspend+resume.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
sequentialNumber | property int | [1,1] | Sequential number of given work bucket.
state | property WorkBucketStateType | [1,1] | State of the work bucket: ready, delegated or complete.
content | property AbstractWorkBucketContentType | [1,1] | Content of the bucket described e.
workerRef | reference ObjectReferenceType | [0,1] | Worker task to which this bucket is delegated.

- ### Items

  - #### sequentialNumber

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Sequential number of given work bucket. Starting at 1.

  - #### state

    Flags: RAM,runtime,AVals:3

    Multiplicity: [1,1]

    State of the work bucket: ready, delegated or complete.

  - #### content

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Content of the bucket described e.g. as a numeric interval of discriminator values.

  - #### workerRef

    Flags: RAM

    Multiplicity: [0,1]

    Worker task to which this bucket is delegated. Must be set for buckets in DELEGATED state. May be set for buckets in COMPLETE state. Must not be set for buckets in READY state.