mirror of
https://github.com/Karaka-Management/oms-Workflow.git
synced 2026-01-11 06:48:41 +00:00
458 lines
15 KiB
JSON
Executable File
458 lines
15 KiB
JSON
Executable File
{
|
|
"triggers": [
|
|
"PRE:Module:Workflow:workflow_template-create",
|
|
"POST:Module:Workflow:workflow_template-create",
|
|
"PRE:Module:Workflow:workflow_template-update",
|
|
"POST:Module:Workflow:workflow_template-update",
|
|
"PRE:Module:Workflow:workflow_template-delete",
|
|
"POST:Module:Workflow:workflow_template-delete",
|
|
|
|
"PRE:Module:Workflow:workflow_instance-create",
|
|
"POST:Module:Workflow:workflow_instance-create",
|
|
"PRE:Module:Workflow:workflow_instance-update",
|
|
"POST:Module:Workflow:workflow_instance-update",
|
|
"PRE:Module:Workflow:workflow_instance-delete",
|
|
"POST:Module:Workflow:workflow_instance-delete"
|
|
],
|
|
"actions": {
|
|
"1005500001": {
|
|
"name": "If",
|
|
"description": {
|
|
"en": "Check condition",
|
|
"de": "Überprüfe Bedingung"
|
|
},
|
|
"function_type": "Api",
|
|
"function": "apiValidateCondition",
|
|
"module": "Workflow",
|
|
"inputs": [
|
|
"field_name",
|
|
"field_value",
|
|
"field_value_type",
|
|
"field_comparison",
|
|
"{*}"
|
|
],
|
|
"outputs": [
|
|
"true|false"
|
|
],
|
|
"settings": {
|
|
"field_name": {
|
|
"type": "input",
|
|
"subtype": "text",
|
|
"default": "*",
|
|
"pattern": null,
|
|
"examples": [],
|
|
"required": true,
|
|
"title": {
|
|
"en": "Field name",
|
|
"de": "Feld name"
|
|
},
|
|
"description": {
|
|
"en": "",
|
|
"de": ""
|
|
}
|
|
},
|
|
"field_value": {
|
|
"type": "input",
|
|
"subtype": "text",
|
|
"default": "*",
|
|
"pattern": null,
|
|
"examples": [],
|
|
"required": true,
|
|
"title": {
|
|
"en": "Field value",
|
|
"de": "Feld value"
|
|
},
|
|
"description": {
|
|
"en": "",
|
|
"de": ""
|
|
}
|
|
},
|
|
"field_comparison": {
|
|
"type": "select",
|
|
"subtype": null,
|
|
"default": "=",
|
|
"pattern": null,
|
|
"examples": [],
|
|
"required": true,
|
|
"title": {
|
|
"en": "Field comparison",
|
|
"de": "Feld comparison"
|
|
},
|
|
"description": {
|
|
"en": "",
|
|
"de": ""
|
|
},
|
|
"options": [
|
|
{
|
|
"value": "=",
|
|
"text": {
|
|
"": "="
|
|
}
|
|
},
|
|
{
|
|
"value": "!=",
|
|
"text": {
|
|
"": "!="
|
|
}
|
|
},
|
|
{
|
|
"value": ">",
|
|
"text": {
|
|
"": ">"
|
|
}
|
|
},
|
|
{
|
|
"value": "<",
|
|
"text": {
|
|
"": "<"
|
|
}
|
|
},
|
|
{
|
|
"value": ">=",
|
|
"text": {
|
|
"": ">="
|
|
}
|
|
},
|
|
{
|
|
"value": "<=",
|
|
"text": {
|
|
"": "<="
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"field_value_type": {
|
|
"type": "select",
|
|
"subtype": null,
|
|
"default": null,
|
|
"pattern": null,
|
|
"examples": [],
|
|
"required": true,
|
|
"title": {
|
|
"en": "Field value type",
|
|
"de": "Feld value type"
|
|
},
|
|
"description": {
|
|
"en": "",
|
|
"de": ""
|
|
},
|
|
"options": [
|
|
{
|
|
"value": "int",
|
|
"text": {
|
|
"en": "Integer",
|
|
"de": "Ganze Zahl"
|
|
}
|
|
},
|
|
{
|
|
"value": "float",
|
|
"text": {
|
|
"en": "Decimal number",
|
|
"den": "Dezimalzahl"
|
|
}
|
|
},
|
|
{
|
|
"value": "datetime",
|
|
"text": {
|
|
"en": "Date/Time",
|
|
"de": "Datum/Zeit"
|
|
}
|
|
},
|
|
{
|
|
"value": "string",
|
|
"text": {
|
|
"en": "Text",
|
|
"de": "Text"
|
|
}
|
|
},
|
|
{
|
|
"value": "bool",
|
|
"text": {
|
|
"en": "True/False",
|
|
"de": "Wahr/Falsch"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"1005500002": {
|
|
"name": "Adapter",
|
|
"description": {
|
|
"en": "Takes input data and forwards the data to another action. Check the outputs and inputs of the actions to create the correct mapping.",
|
|
"de": "Übernimmt Eingangsdaten und leitet diese an eine andere Aktion weiter. Überprüfe die Ausgaben und Eingaben der jeweiligen Aktionen um die korrekten Verknüpfungen zu erstellen."
|
|
},
|
|
"function_type": "Api",
|
|
"function": "apiAdapter",
|
|
"module": "Workflow",
|
|
"inputs": [
|
|
"map",
|
|
"{*}"
|
|
],
|
|
"outputs": [
|
|
"{*}"
|
|
],
|
|
"settings": {
|
|
"map": {
|
|
"type": "textarea",
|
|
"subtype": null,
|
|
"default": null,
|
|
"pattern": null,
|
|
"examples": [
|
|
"output1 -> input1\noutput1.name -> input2"
|
|
],
|
|
"required": true,
|
|
"title": {
|
|
"en": "Adapter",
|
|
"de": "Adapter"
|
|
},
|
|
"description": {
|
|
"en": "",
|
|
"de": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"1005500003": {
|
|
"name": "Listen Trigger",
|
|
"description": {
|
|
"en": "Listens to trigger",
|
|
"de": "Wartet auf Trigger"
|
|
},
|
|
"function_type": "Api",
|
|
"function": "apiListenToTrigger",
|
|
"module": "Workflow",
|
|
"inputs": [
|
|
"type",
|
|
"trigger",
|
|
"delete",
|
|
"{*}"
|
|
],
|
|
"outputs": [
|
|
"{*}"
|
|
],
|
|
"settings": {
|
|
"type": {
|
|
"type": "select",
|
|
"subtype": null,
|
|
"default": "1",
|
|
"pattern": null,
|
|
"examples": [],
|
|
"required": true,
|
|
"title": {
|
|
"en": "Type",
|
|
"de": "Type"
|
|
},
|
|
"options": [
|
|
{
|
|
"value": "1",
|
|
"text": {
|
|
"en": "Existing Trigger",
|
|
"de": "Bestehender Trigger"
|
|
}
|
|
},
|
|
{
|
|
"value": "2",
|
|
"text": {
|
|
"en": "New Trigger",
|
|
"de": "Neuer Trigger"
|
|
}
|
|
}
|
|
],
|
|
"description": {
|
|
"en": "",
|
|
"de": ""
|
|
}
|
|
},
|
|
"trigger": {
|
|
"type": "input",
|
|
"subtype": "text",
|
|
"default": null,
|
|
"pattern": null,
|
|
"examples": [
|
|
"PRE:Module:Billing:bill-create",
|
|
"PRE:Module:Billing:bill-update.*",
|
|
"PRE:Module:Billing:bill-update-{$id}"
|
|
],
|
|
"required": true,
|
|
"title": {
|
|
"en": "Trigger",
|
|
"de": "Trigger"
|
|
},
|
|
"description": {
|
|
"en": "",
|
|
"de": ""
|
|
}
|
|
},
|
|
"delete": {
|
|
"type": "select",
|
|
"subtype": null,
|
|
"default": "1",
|
|
"pattern": null,
|
|
"examples": [],
|
|
"required": true,
|
|
"title": {
|
|
"en": "Type",
|
|
"de": "Type"
|
|
},
|
|
"options": [
|
|
{
|
|
"value": "1",
|
|
"text": {
|
|
"en": "Never",
|
|
"de": "Niemals"
|
|
}
|
|
},
|
|
{
|
|
"value": "2",
|
|
"text": {
|
|
"en": "After trigger execution",
|
|
"de": "Nach Triggerausführung"
|
|
}
|
|
},
|
|
{
|
|
"value": "3",
|
|
"text": {
|
|
"en": "After workflow execution",
|
|
"de": "Nach Workflowausführung"
|
|
}
|
|
}
|
|
],
|
|
"description": {
|
|
"en": "",
|
|
"de": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"1005500004": {
|
|
"name": "Run Trigger",
|
|
"description": {
|
|
"en": "Takes input data and forwards the data to another action. Check the outputs and inputs of the actions to create the correct mapping.",
|
|
"de": "Übernimmt Eingangsdaten und leitet diese an eine andere Aktion weiter. Überprüfe die Ausgaben und Eingaben der jeweiligen Aktionen um die korrekten Verknüpfungen zu erstellen."
|
|
},
|
|
"function_type": "Api",
|
|
"function": "apiRun",
|
|
"module": "Workflow",
|
|
"inputs": [
|
|
"map",
|
|
"{*}"
|
|
],
|
|
"outputs": [
|
|
"{*}"
|
|
],
|
|
"settings": {
|
|
"map": {
|
|
"type": "textarea",
|
|
"subtype": null,
|
|
"default": null,
|
|
"pattern": null,
|
|
"examples": [
|
|
"output1 -> input1\noutput1.name -> input2"
|
|
],
|
|
"required": true,
|
|
"title": {
|
|
"en": "Adapter",
|
|
"de": "Adapter"
|
|
},
|
|
"description": {
|
|
"en": "",
|
|
"de": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"1005500005": {
|
|
"name": "Timed Trigger (Job/Task)",
|
|
"description": {
|
|
"en": "Timed trigger (Job/Task)",
|
|
"de": "Zeitgesteuerter Trigger (Job/Task)"
|
|
},
|
|
"function_type": "Api",
|
|
"function": "",
|
|
"module": "Workflow",
|
|
"function_install": {
|
|
"module": "Workflow",
|
|
"function": "installTimedTrigger"
|
|
},
|
|
"inputs": [
|
|
"interval",
|
|
"{*}"
|
|
],
|
|
"outputs": [
|
|
"{*}"
|
|
],
|
|
"settings": {
|
|
"interval": {
|
|
"type": "input",
|
|
"subtype": "text",
|
|
"default": null,
|
|
"pattern": null,
|
|
"examples": [],
|
|
"required": true,
|
|
"title": {
|
|
"en": "Interval",
|
|
"de": "Interval"
|
|
},
|
|
"description": {
|
|
"en": "",
|
|
"de": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"1005500006": {
|
|
"name": "Cli Action",
|
|
"description": {
|
|
"en": "Cli action",
|
|
"de": "Konsolenbefehl"
|
|
},
|
|
"function_type": "Api",
|
|
"function": "",
|
|
"module": "Workflow",
|
|
"inputs": [
|
|
"cmd",
|
|
"{*}"
|
|
],
|
|
"outputs": [
|
|
"{*}"
|
|
],
|
|
"settings": {
|
|
"cmd": {
|
|
"type": "input",
|
|
"subtype": "text",
|
|
"default": null,
|
|
"pattern": null,
|
|
"examples": [],
|
|
"required": true,
|
|
"title": {
|
|
"en": "Command",
|
|
"de": "Befehl"
|
|
},
|
|
"description": {
|
|
"en": "",
|
|
"de": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"1005500007": {
|
|
"name": "Workflow Script",
|
|
"description": {
|
|
"en": "Workflow script",
|
|
"de": "Workflow Script"
|
|
},
|
|
"function_type": "Api",
|
|
"function": "",
|
|
"module": "Workflow",
|
|
"inputs": [
|
|
"{*}"
|
|
],
|
|
"outputs": [
|
|
"{*}"
|
|
],
|
|
"settings": {
|
|
}
|
|
}
|
|
}
|
|
} |