# HookType (Complex Type)

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

TODO

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
name | property string | [0,1] | Free-form hook name.
description | property string | [0,1] |
enabled | property boolean | [0,1] |
state | property ModelStateType | [0,1] |
focusType | property QName | [0,1] |
ref | property anyURI | [0,1] | URL of hook handler.
script | property ScriptExpressionEvaluatorType | [0,1] | Script that will be executed instead of hook handler.

- ### Items

  - #### name

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Free-form hook name. Used for diagnostic purposed (e.g. in log files)

  - #### description

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### enabled

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### state

    Flags: RAM,runtime,AVals:6

    Multiplicity: [0,1]

  - #### focusType

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### ref

    Flags: RAM,runtime

    Multiplicity: [0,1]

    URL of hook handler. Exactly one of "ref" or "script" has to be specified.

  - #### script

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Script that will be executed instead of hook handler. Exactly one of "ref" or "script" has to be specified.