# Module: app\_scripting\_proxy

## AppScriptingProxyScriptingContext

### Attributes:

| Datatype                                                                                                      | Name       | Description                        | Read-only |
| ------------------------------------------------------------------------------------------------------------- | ---------- | ---------------------------------- | --------- |
| *string*                                                                                                      | jsonData   | Die zu verarbeitenden Json-Daten   | Yes       |
| [ScriptingServiceList](https://developer.vario-software.de/scripting-reference/services#ScriptingServiceList) | services   | Services                           | Yes       |
| *Map\<string,object>*                                                                                         | parameters | Parameter zur Verwendung im Skript | No        |

## AppScriptForExecutionProcess

Verarbeitet die Json-Daten

*Return type:* *object*

| Datatype                                                                |   Name  | Description    | Required |
| ----------------------------------------------------------------------- | :-----: | -------------- | -------- |
| [AppScriptingProxyScriptingContext](#AppScriptingProxyScriptingContext) |   ctx   | Skript-Kontext | Yes      |
| *object*                                                                | jsonObj | JSON-Objekt    | Yes      |

## Instance: appScript

### Description

Manipulation eines JSONs oder Ausführung von Aktionen durch eine App

### Methods

***setProcess***

Setter für Callback "process"

| Datatype                                                      |   Name   | Description        | Required |
| ------------------------------------------------------------- | :------: | ------------------ | -------- |
| [AppScriptForExecutionProcess](#AppScriptForExecutionProcess) | callback | Callback "process" | Yes      |

```
import appScript from "app_scripting_proxy";

appScript.setProcess( (ctx, jsonObj) => {
    // Perform actions and return the manipulated json, if applicable
    return jsonObj;
});

```
