# ItemReportingConditionType (Complex Type)

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

Condition controlling item report creation or collection that is evaluated before or after item is processed.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
interval | property int | [0,1] | If specified, only each N-th item is reported.
firstWorker | property boolean | [0,1] | If true, only the first worker on each node (so called scavenger) runs the report.
expression | property ExpressionType | [0,1] | Expression that is evaluated.

- ### Items

  - #### interval

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    If specified, only each N-th item is reported. Should be used only in "before item" conditions to spare processing resources.

  - #### firstWorker

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    If true, only the first worker on each node (so called scavenger) runs the report. Should be used only in "before item" conditions to spare processing resources.

  - #### expression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Expression that is evaluated. If returns false, the report is not being created or collected. Variables available: "request", "item". After processing, also "operation" (containing e.g. duration or status) and "operationResult" are available.