Skip to content

Commit 432a4d9

Browse files
author
jokob-sk
committedMar 9, 2025
Initial commit on next_release branch
1 parent f5713d4 commit 432a4d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1510
-220
lines changed
 

‎back/workflows.json

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
[
2+
{
3+
"name": "Sample Device Update Workflow",
4+
"trigger": {
5+
"object_type": "Devices",
6+
"event_type": "update"
7+
},
8+
"conditions": [
9+
{
10+
"logic": "AND",
11+
"conditions": [
12+
{
13+
"field": "devVendor",
14+
"operator": "contains",
15+
"value": "Google"
16+
},
17+
{
18+
"field": "devIsNew",
19+
"operator": "equals",
20+
"value": "1"
21+
},
22+
{
23+
"logic": "OR",
24+
"conditions": [
25+
{
26+
"field": "devIsNew",
27+
"operator": "equals",
28+
"value": "1"
29+
},
30+
{
31+
"field": "devName",
32+
"operator": "contains",
33+
"value": "Google"
34+
}
35+
]
36+
}
37+
]
38+
}
39+
],
40+
"actions": [
41+
{
42+
"type": "update_field",
43+
"field": "devIsNew",
44+
"value": "0"
45+
},
46+
{
47+
"type": "run_plugin",
48+
"plugin": "SMTP",
49+
"params": {
50+
"message": "New device from Google detected."
51+
}
52+
}
53+
]
54+
},
55+
{
56+
"name": "Sample Plugin Object Workflow",
57+
"trigger": {
58+
"object_type": "Plugins_Objects",
59+
"event_type": "create"
60+
},
61+
"conditions": [
62+
{
63+
"logic": "AND",
64+
"conditions": [
65+
{
66+
"field": "Plugin",
67+
"operator": "equals",
68+
"value": "ARPSCAN"
69+
},
70+
{
71+
"field": "Status",
72+
"operator": "equals",
73+
"value": "missing-in-last-scan"
74+
}
75+
]
76+
}
77+
],
78+
"actions": [
79+
]
80+
}
81+
]

‎docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ services:
6161
- ${DEV_LOCATION}/front/cloud_services.php:/app/front/cloud_services.php
6262
- ${DEV_LOCATION}/front/report.php:/app/front/report.php
6363
- ${DEV_LOCATION}/front/workflows.php:/app/front/workflows.php
64+
- ${DEV_LOCATION}/front/workflowsCore.php:/app/front/workflowsCore.php
65+
- ${DEV_LOCATION}/front/appEvents.php:/app/front/appEvents.php
6466
- ${DEV_LOCATION}/front/appEventsCore.php:/app/front/appEventsCore.php
6567
- ${DEV_LOCATION}/front/multiEditCore.php:/app/front/multiEditCore.php
6668
- ${DEV_LOCATION}/front/plugins:/app/front/plugins

0 commit comments

Comments
 (0)