# AsynchronousScriptExecutionType (Complex Type)

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

Options for asynchronous script execution.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
executionMode | property AsynchronousScriptExecutionModeType | [0,1] | Mode of execution.
taskOwnerRef | reference ObjectReferenceType | [0,1] | Owner of the task created.
taskTemplateRef | reference ObjectReferenceType | [0,1] | Task template to use.
taskCustomizer | property ExpressionType | [0,1] | An expression that takes a task and customizes its content.

- ### Items

  - #### executionMode

    Flags: RAM,runtime,AVals:3

    Multiplicity: [0,1]

    Mode of execution.

  - #### taskOwnerRef

    Flags: RAM

    Multiplicity: [0,1]

    Owner of the task created. The default is the currently logged-in user; or the one impersonated via runAsRef.

  - #### taskTemplateRef

    Flags: RAM

    Multiplicity: [0,1]

    Task template to use. EXPERIMENTAL.

  - #### taskCustomizer

    Flags: RAM,runtime

    Multiplicity: [0,1]

    An expression that takes a task and customizes its content. Input variable: preparedTask (of TaskType). Output: TaskType that should be used. (It is possible to modify preparedTask and return it.) This is the final step in task preparation. So the task is executed in the form that is prepared by this expression. EXPERIMENTAL.