Commit Graph

300 Commits

Author SHA1 Message Date
Jan Jakes
dbf17204a0 Preserve stap map index to catch invalid values in validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
c9c98b403c Fix possible undefined index access
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
76d2d40198 Add missing exception message
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
d911166637 Use new data structures in someone subscribes trigger & simplify it
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
5920810ac6 Use step args for triggers
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
a7a58ee791 Fix typos and variable name
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
3c651c940b Add convenience by-class getter for payloads (& use it)
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
a35e925479 Add convenience by-class getter for subjects
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
fe3d719a13 Use step run args in existing actions
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
68b5bab9cc Introduce step run args to simplify step run arguments
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
460cbd9e12 Construct and pass subject entries to step runners
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
00e8c4f3e5 Make steps specify required/provided subject keys
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
c28d8ad79c Introduce subject entry to carry subject & payload data
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
b0aad2216a Split subscriber subject to Subject & Payload
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
18aedf3d1a Split segment subject to Subject & Payload
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
e38e79f385 Split integration subject to a service (Subject) and data (Payload)
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
757f1dc01a Use subject data type for workflow runs, remove subject loading from storage
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
c30244b30f Introduce subject data type for storage
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
c58a5a4308 Add workflow step arg schema validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
282c987d4f Require root step by workflow schema
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
d7b65bd980 Run validation on workflow create and update
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
e220b70c78 Add workflow validator service with workflow graph validation rules
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
a3ea91adae Add no split rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
65927cc281 Add no join rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
cafe2ed8a7 Add no cycle rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
a3797b976a Add triggers under root rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
325418e826 Add no duplicate edges rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
11a711e42c Add consisten steps map rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
0aa4cd4863 Add no unreachable steps rule for workflow validation
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
e472c00b1c Implerment depth-first pre-order workflow graph walker with plug-in node visitors
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
e3668a8187 Add constant for root step type
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
Jan Jakes
8590cb1409 Rename automation "Validators" namespace to a more universal "Validation"
[MAILPOET-4629]
2022-09-23 12:42:03 +03:00
David Remer
e1e5749eca Change isTriggeredBy signature for clarity
[MAILPOET-4587]
2022-09-21 10:38:17 +02:00
David Remer
b914a1d2ec Rename SomeoneSubscribesTrigger key and class
[MAILPOET-4587]
2022-09-21 10:38:17 +02:00
David Remer
c0e8a70f06 Turn no item selected to former 'any item' behavior
[MAILPOET-4587]
2022-09-21 10:38:17 +02:00
David Remer
bb5da626ba Add UserRegistrationTrigger
[MAILPOET-4587]
2022-09-21 10:38:17 +02:00
David Remer
e2c9356f4c Execute WorkflowRun only when trigger criteria are met
[MAILPOET-4587]
2022-09-21 10:38:17 +02:00
David Remer
9d2720f504 Extend arguments schema with segment_ids
[MAILPOET-4587]
2022-09-21 10:38:17 +02:00
David Remer
5d5e7d76e5 Use mapper function to return workflow data
[MAILPOET-4533]
2022-09-15 08:08:07 +02:00
David Remer
339cba3c42 Throw InvalidStateException when workflow is not found
[MAILPOET-4533]
2022-09-15 08:08:07 +02:00
David Remer
1591700e71 Return created workflow with ID when using create-from-template endpoint
[MAILPOET-4533]
2022-09-15 08:08:07 +02:00
John Oleksowicz
7c3d3fbf12 Only allow storing scalar data
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
0008beaafd Add ORDER BY to always retrieve logs in order created
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
c828b7245d Remove redundant step args from log
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
d0f8d0f2bb Use native type hint
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
e769273c8d Add index for workflow_run_id
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
4687a8c515 Rename created_at to started_at
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
bf0f8a4dc5 Don't allow setting data that couldn't be retrieved
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
f126bdb2b9 Only allow a single error per log
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
3356bb855d Remove optional and unused user facing error message
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00