Aufbau Tasks
Aufbau Tasks
Der Aufbau eines Tasks gliedert sich in drei Sektionen: reader, transform und write.
Reader Sektion
Verfügbare Eigenschaften
| Eigenschaft | Typ | Beschreibung |
|---|---|---|
source | string | Mögliche Werte: database, file, json |
database | object | (optional) Siehe Database |
files | array | (optional) Liste von Dateien |
Beispiel
{
"reader": {
"source": "file"
}
}
Database
Verfügbare Eigenschaften
| Eigenschaft | Typ | Beschreibung |
|---|---|---|
connection | object | Verbindungsdetails |
connection.user | string | Benutzername |
connection.password | string | Passwort |
connection.server | string | SQL-Server |
connection.database | string | Datenbankname |
connection.debug | boolean | SQL-Debugging aktiviert |
connection.port | number | Port |
connection.options | object | Weitere Optionen |
tables | array | Tabellenkonfigurationen |
tables[0].name | string | Eindeutiger Name |
tables[0].statement | string | SQL-Statement |
Beispiel
"database": {
"connection": {
"user": "sa",
"password": "blub",
"server": "server",
"database": "invoicecontroldb",
"debug": true,
"port": 1433,
"options": {
"trustedConnection": false,
"encrypt": false
}
},
"tables": [
{
"name": "vendor",
"statement": "SELECT * FROM VENDOR"
},
{
"name": "recipient",
"statement": "SELECT * FROM recipient"
},
{
"name": "orderitem",
"statement": "SELECT * FROM ORDERITEM"
}
]
}
Transform Sektion
Verfügbare Eigenschaften
| Eigenschaft | Typ | Beschreibung |
|---|---|---|
mapping | array | (optional) Mapping-Definitionen |
file | boolean|object | (optional) Datei als Buffer laden |
file.asJSON | boolean | (optional) Datei als JSON laden |
Beispiel
{
"mapping": [
{
"recordset": "recipient",
"file": "recipient.json"
},
{
"recordset": "orderitem",
"file": "orderitem.json"
},
{
"recordset": "vendor",
"fields": [
{
"source": "vendorid",
"target": "VE_VENDOR_NO"
},
{
"source": "vendorrecipientid",
"target": "VE_RECIPIENT_NO"
},
{
"source": "vendorname1",
"target": "VE_NAME"
}
]
}
]
}
Mapping
Verfügbare Eigenschaften
| Eigenschaft | Typ | Beschreibung |
|---|---|---|
recordset | string | Eindeutiger Name aus der Reader-Sektion |
file | string | (optional) Dateiname des Mappings |
fields | array | Array mit Feldzuweisungen |
fields[0].source | string | (optional) Quellspalte |
fields[0].target | string | (optional) Zielspalte |
fields[0].value | string | (optional) Standardwert |
Beispiel
{
"recordset": "vendor",
"fields": [
{
"source": "vendorid",
"target": "VE_VENDOR_NO"
},
{
"source": "vendorrecipientid",
"target": "VE_RECIPIENT_NO"
},
{
"source": "vendorname1",
"target": "VE_NAME"
}
]
}
Writer Sektion
Verfügbare Eigenschaften
| Eigenschaft | Typ | Beschreibung |
|---|---|---|
target | string | Mögliche Werte: analyse, create, deleteTask, finishProcessing, getData, getFile, getInfo, learn, stammdaten, startProcessing |
flags | object | (optional) Siehe TaskFlags |
attributes | array | (optional) Siehe Attribute |
stammdaten | object | (optional) Siehe stammdaten |
Beispiel
"writer": {
"target": "stammdaten",
"stammdaten": {
"subsystem": "1093800_InvoiceTables",
"tables": [
{
"recordset": "vendor",
"table": "SFI_VENDOR",
"clear": true
}
]
}
}
TaskFlags
Verfügbare Eigenschaften
| Eigenschaft | Typ | Beschreibung |
|---|---|---|
exportVerifierDocuments | boolean | Dokumente im Zustand VERIFIER exportieren |
exportSupervisorDocuments | boolean | Dokumente im Zustand SUPERVISOR exportieren |
showAllDocumentsInVerifier | boolean | Zeigt alle Dokumente zur Nachbearbeitung |
hasDocumentSeparators | boolean | Enthält Dokumenttrennblätter |
hasProcessSeparators | boolean | Enthält Vorgangstrenndokumente |
extractionDisabled | boolean | Klassifikation und Extraktion deaktiviert |
Beispiel
"flags": {
"exportVerifierDocuments": true,
"exportSupervisorDocuments": true,
"showAllDocumentsInVerifier": true,
"hasDocumentSeparators": true,
"hasProcessSeparators": true,
"extractionDisabled": true
}
Attribute
Verfügbare Eigenschaften
| Eigenschaft | Typ | Beschreibung |
|---|---|---|
name | string | Name des Attributes |
value | string | Wert des Attributes |
Beispiel
"attributes": [
{
"name": "$DateOfReceipt",
"value": "${currentDate}"
}
]