# WorkersPerNodeDefinitionType (Complex Type)

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

How to create worker tasks per node.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
nodeIdentifier | property string | [0,-1] | Node identifier(s) for which we are going to generate the tasks.
count | property int | [0,1] | How many workers to create for given node(s).
scavengers | property int | [0,1] | How many scavengers to appoint for given node(s).
taskName | property string | [0,1] | How to derive names for the tasks.
executionGroup | property string | [0,1] | Execution group for created workers.
otherDeltas | property ItemDeltaType | [0,-1] | Other deltas to be applied to newly created worker task in this group.

- ### Items

  - #### nodeIdentifier

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Display order:

    Node identifier(s) for which we are going to generate the tasks. Empty list means all nodes that are currently defined in the repository.

  - #### count

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How many workers to create for given node(s). Default is 1 per node.

  - #### scavengers

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How many scavengers to appoint for given node(s). Default is 1 per node.

  - #### taskName

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How to derive names for the tasks. It is possible to use substitution strings of {node} (identifier of the node executing the worker task), {index} (number of worker at particular node, starting at 1), {activity} (name of the activity), {rootTaskName} (name of the root task), {rootTaskOid} (OID of the root task), {coordinatorTaskName} (name of the coordinator task), {coordinatorTaskOid} (OID of the coordinator task).

  - #### executionGroup

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Execution group for created workers. It is possible to use substitution strings of {node} and {index} here. Node is the node identifier and index numbers workers created for particular node, starting at 1. Default is "{node}".

  - #### otherDeltas

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Display order:

    Other deltas to be applied to newly created worker task in this group. BEWARE! These are applied only to newly created tasks. During further workers reconciliation runs they are ignored.