Skip to content

Commit 084344f

Browse files
committed
feat: added Cron Definitions
1 parent e938821 commit 084344f

File tree

7 files changed

+192
-0
lines changed

7 files changed

+192
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"variant": "OBJECT",
3+
"identifier": "CRON_CODE",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "Cron Code"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"containsKey": {
13+
"key": "minute",
14+
"dataTypeIdentifier": {
15+
"dataTypeIdentifier": "CRON_MINUTE"
16+
}
17+
}
18+
},
19+
{
20+
"containsKey": {
21+
"key": "hour",
22+
"dataTypeIdentifier": {
23+
"dataTypeIdentifier": "CRON_HOUR"
24+
}
25+
}
26+
},
27+
{
28+
"containsKey": {
29+
"key": "day_of_month",
30+
"dataTypeIdentifier": {
31+
"dataTypeIdentifier": "CRON_DAY_OF_MONTH"
32+
}
33+
}
34+
},
35+
{
36+
"containsKey": {
37+
"key": "month",
38+
"dataTypeIdentifier": {
39+
"dataTypeIdentifier": "CRON_MONTH"
40+
}
41+
}
42+
},
43+
{
44+
"containsKey": {
45+
"key": "day_of_week",
46+
"dataTypeIdentifier": {
47+
"dataTypeIdentifier": "CRON_DAY_OF_WEEK"
48+
}
49+
}
50+
},
51+
{
52+
"parentType": {
53+
"parentType": {
54+
"dataTypeIdentifier": "OBJECT"
55+
}
56+
}
57+
}
58+
],
59+
"genericKeys": []
60+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"variant": "TYPE",
3+
"identifier": "CRON_DAY_OF_MONTH",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "Cron Day of Month"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"regex": {
13+
"pattern": "^(\\*|([1-9]|[12]\\d|3[01])(-([1-9]|[12]\\d|3[01]))?)(\\/([1-9]|[12]\\d|3[01]))?(,(\\*|([1-9]|[12]\\d|3[01])(-([1-9]|[12]\\d|3[01]))?)(\\/([1-9]|[12]\\d|3[01]))?)*$"
14+
}
15+
}
16+
],
17+
"genericKeys": []
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"variant": "TYPE",
3+
"identifier": "CRON_DAY_OF_WEEK",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "Cron Day of Week"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"regex": {
13+
"pattern": "^(\\*|([0-7])(-([0-7]))?)(\\/([0-7]))?(,(\\*|([0-7])(-([0-7]))?)(\\/([0-7]))?)*$"
14+
}
15+
}
16+
],
17+
"genericKeys": []
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"variant": "TYPE",
3+
"identifier": "CRON_HOUR",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "Cron Hour"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"regex": {
13+
"pattern": "^(\\*|([01]?\\d|2[0-3])(-([01]?\\d|2[0-3]))?)(\\/([01]?\\d|2[0-3]))?(,(\\*|([01]?\\d|2[0-3])(-([01]?\\d|2[0-3]))?)(\\/([01]?\\d|2[0-3]))?)*$"
14+
}
15+
}
16+
],
17+
"genericKeys": []
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"variant": "TYPE",
3+
"identifier": "CRON_MINUTE",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "Cron Minute"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"regex": {
13+
"pattern": "^(\\*|([0-5]?\\d)(-[0-5]?\\d)?)(\\/[0-5]?\\d)?(,(\\*|([0-5]?\\d)(-[0-5]?\\d)?)(\\/[0-5]?\\d)?)*$"
14+
}
15+
}
16+
],
17+
"genericKeys": []
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"variant": "TYPE",
3+
"identifier": "CRON_MONTH",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "Cron Month"
8+
}
9+
],
10+
"rules": [
11+
{
12+
"regex": {
13+
"pattern": "^(\\*|(0?[1-9]|1[0-2])(-(0?[1-9]|1[0-2]))?)(\\/(0?[1-9]|1[0-2]))?(,(\\*|(0?[1-9]|1[0-2])(-(0?[1-9]|1[0-2]))?)(\\/(0?[1-9]|1[0-2]))?)*$"
14+
}
15+
}
16+
],
17+
"genericKeys": []
18+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"identifier": "CRON",
3+
"settings": [
4+
{
5+
"identifier": "CRON_CODE",
6+
"unique": false,
7+
"dataTypeIdentifier": "CRON_CODE",
8+
"defaultValue": null,
9+
"name": [
10+
{
11+
"code": "en-US",
12+
"content": "Cron Code"
13+
}
14+
],
15+
"description": [
16+
{
17+
"code": "en-US",
18+
"content": "Specifies the Cron Code for this flow to be called."
19+
}
20+
]
21+
}
22+
],
23+
"editable": false,
24+
"name": [
25+
{
26+
"code": "en-US",
27+
"content": "Cron Job"
28+
}
29+
],
30+
"description": [
31+
{
32+
"code": "en-US",
33+
"content": "A Cron Job is a scheduled task that runs automatically at specified intervals, typically defined using cron expressions. It is commonly used to automate repetitive operations such as data processing, system maintenance, and periodic updates without requiring manual execution."
34+
}
35+
],
36+
"documentation": [
37+
{
38+
"code": "en-US",
39+
"content": "A Cron Job is a time-based task scheduler that executes commands or scripts at predefined intervals, specified using cron expressions. These expressions control the exact timing of execution—for example, running a task every minute, daily at midnight, or on specific days of the week. Cron Jobs are widely used to automate routine processes such as backups, log rotation, data synchronization, and other recurring system or application tasks."
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)