# ProvisioningScriptType (Complex Type)

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

Specifies a script to be executed during provisioning.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
host | property ProvisioningScriptHostType | [0,1] | Defines where the script should be executed (connector or resource).
language | property anyURI | [1,1] | Specifies the language of the script.
argument | property ProvisioningScriptArgumentType | [0,-1] | Script arguments.
code | property string | [1,1] | Script code represented as string.
criticality | property CriticalityType | [0,1] | Defines where the script should be executed (connector or resource).

- ### Items

  - #### host

    Flags: RAM,runtime,AVals:2

    Multiplicity: [0,1]

    Defines where the script should be executed (connector or resource). If no type is specified, it defaults to resource.

  - #### language

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Specifies the language of the script.

  - #### argument

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Script arguments. The arguments will passed to the script in any way suitable for the script. The argument name is "local" to the script (script-specific). Script name must be unique in the argument set. The order of arguments is not significant.

  - #### code

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Script code represented as string. The interpretation depends on script language. If XML elements are used inside, they should be properly escaped. (e.g. using CDATA).

  - #### criticality

    Flags: RAM,runtime,AVals:3

    Multiplicity: [0,1]

    Defines where the script should be executed (connector or resource). If no type is specified, it defaults to resource.