Commit Graph

39 Commits

Author SHA1 Message Date
8cf48d2707 Simplify SubjectTransformer
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
5328213d85 Introduce subject transformation
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
9d55d3f134 Use "automation" instead of "workflow"
[MAILPOET-4793]
2022-11-14 12:14:35 +02:00
bda979ec4f Fix trash error when workflow status is draft
[MAILPOET-4792]
2022-11-09 19:58:44 +03:00
c76a0adb5e Move validation rules for active workflows below structural rules
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
848fc51070 Run full workflow validation for all non-draft statuses
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
12f2d1730f Do not enforce workflow content for non-active workflows
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
dc5e5b4f8b Use "automation" instead of "workflow" in user-facing strings
[MAILPOET-4758]
2022-11-04 10:51:23 +02:00
5075982cd3 Rename validateArray to validateSchemaArray and specify the format in doc comment
[MAILPOET-4700]
2022-10-26 12:51:16 +02:00
540b34c63f Validate multiple properties
[MAILPOET-4700]
2022-10-26 12:51:16 +02:00
2cacb5809d Avoid iteration
[MAILPOET-4700]
2022-10-26 12:51:16 +02:00
900faa2a71 order error cases
[MAILPOET-4700]
2022-10-26 12:51:16 +02:00
4e1b1b3c27 Ensure at least one trigger is present and triggers are followed by actions
[MAILPOET-4700]
2022-10-26 12:51:16 +02:00
8af01c3bcb Use Rest API error codes and map them to error messages
[MAILPOET-4700]
2022-10-26 12:51:16 +02:00
686f702ec9 Add errors per field in Response data
[MAILPOET-4700]
2022-10-26 12:51:16 +02:00
99879d83f6 Simplify condition for full step validation
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
a82896e794 Collect all step error types instead of terminating on the first one
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
04ca19296b Add rule for step order validation
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
a052cdcceb Allow custom validation for all step types
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
9d8cb02006 Add valid step rule for custom step validation
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
6638707282 Add validation rule identifiers to exceptions and responses
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
9da204489d Collect step args validation errors
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
68c51c0f5c Convert WorkflowStepValidator to node-visitor-based rules
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
881dbfbe08 Fix root step args schema definition
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
f4b3f9bf86 Explicitly handle optional workflow ID and version ID, fix missing ID for new workflows
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
1f37be5ef3 Run full step validation only for active workflows
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
76d2d40198 Add missing exception message
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
c58a5a4308 Add workflow step arg schema validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
282c987d4f Require root step by workflow schema
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
e220b70c78 Add workflow validator service with workflow graph validation rules
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
a3ea91adae Add no split rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
65927cc281 Add no join rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
cafe2ed8a7 Add no cycle rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
a3797b976a Add triggers under root rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
325418e826 Add no duplicate edges rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
11a711e42c Add consisten steps map rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
0aa4cd4863 Add no unreachable steps rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
e472c00b1c Implerment depth-first pre-order workflow graph walker with plug-in node visitors
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
8590cb1409 Rename automation "Validators" namespace to a more universal "Validation"
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00