Jan Jakes
abe44ca9f8
Implement filter handler to apply filters on field values during automation run
...
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
7f9faf1d99
Use automation WP helpers
...
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
ae828b9ac4
Do not load all possible subjects eagerly
...
With subject transformers the amount of possible subjects will grow,
and preloading even those that won't be used may result in performance
issues, and unnecessary errors (e.g., caused by 3rd party transformers).
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
54f5addca9
Extract subject loading before automation processing loop
...
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
70dbfc28b7
Early return when no active automation matches given trigger
...
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
David Remer
d6760cb113
Use array
...
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
8cf48d2707
Simplify SubjectTransformer
...
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
d365be2334
Persist all possible subject on run creation
...
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
48e2c5f945
Add filter to decide whether an automation run should be created
...
[MAILPOET-4966]
2023-03-01 16:14:38 +01:00
David Remer
b25f2cd5f4
Enable a Trigger to activate a second automation
...
[MAILPOET-4842]
2022-11-28 13:03:06 +01:00
Jan Jakes
9d55d3f134
Use "automation" instead of "workflow"
...
[MAILPOET-4793]
2022-11-14 12:14:35 +02:00
Jan Jakes
f825e535e3
Save next step in trigger handler
...
[MAILPOET-4787]
2022-11-08 22:55:57 +02:00
Jan Jakes
a2948efc46
Rename namespace with defs for 3rd-party integrations to "Integration"
...
[MAILPOET-4659]
2022-10-13 11:58:11 +02:00
Jan Jakes
5920810ac6
Use step args for triggers
...
[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
David Remer
e1e5749eca
Change isTriggeredBy signature for clarity
...
[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
Jan Jakes
6d91251d6c
Update workflow execution control to the new format
...
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
David Remer
02489a61a6
Add version_id to WorkflowRun
...
[MAILPOET-4430]
2022-08-10 16:57:25 +02:00
Jan Jakes
4aa323b612
Extract data-carrying classes to dedicated namespace
...
We need a separation of "Step" as an interface vs. "Step" as a serializable data structure.
[MAILPOET-4515]
2022-08-08 13:23:57 +02:00
Jan Jakes
494cc7b780
Allow multiple subjects of the same type
...
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
Jan Jakes
d7fe884452
Use subject loader in trigger handler
...
[MAILPOET-4454]
2022-07-04 14:09:00 +02:00
Jan Jakes
716050b7de
Save subject data in workflow runs
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
4a8f37172a
Enqueue next workflow step in trigger handler
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
e4b09ab6de
Create new workflow run in trigger handler
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
a191c691f5
Add hook and basic handler for automation triggers
...
For now trigger keys are stored in the workflow as a JSON array.
This is not optimal in case someone has many workflows but as
workflows are user-created it's unlinkely someone will have thousands
of them. We can consider adding a workflow_triggers table as well.
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00