# ActivityBucketingStateType (Complex Type)

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

Information about the bucket processing within an activity.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
bucket | container WorkBucketType | [0,-1] | Current buckets of work.
numberOfBuckets | property int | [0,1] | How many buckets are there? This is an indicative information, e.
bucketsProcessingRole | property BucketsProcessingRoleType | [0,1] | Role of this task in the processing of the buckets: standalone executor, coordinator, or worker.
scavenger | property boolean | [0,1] | Is this task a scavenger i.
workComplete | property boolean | [0,1] | True if all the work is complete: there are no more buckets to be processed.

- ### Items

  - #### bucket

    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).

  - #### numberOfBuckets

    Flags: RAM,runtime

    Multiplicity: [0,1]

    How many buckets are there? This is an indicative information, e.g. to be used when estimating total progress. Relevant only for coordinator and standalone tasks.

  - #### bucketsProcessingRole

    Flags: RAM,runtime,AVals:3

    Multiplicity: [0,1]

    Role of this task in the processing of the buckets: standalone executor, coordinator, or worker. (This is somewhat duplicate to TaskActivityStateType.role but has slightly different meaning, so we keep it here.)

  - #### scavenger

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Is this task a scavenger i.e. will it wait until the work is done, looking for buckets that could be reclaimed? Applicable only to worker tasks.

  - #### workComplete

    Flags: RAM,runtime

    Multiplicity: [0,1]

    True if all the work is complete: there are no more buckets to be processed.