Jan Jakes
b88e310f7e
Add storage service for workflow runs & create workflow run method
...
[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
Jan Jakes
933ee0c8c8
Call "registerHooks" method for all triggers of all active workflows
...
This is needed so the triggers actually work – their hooks need to be
registered when the triggers are in some active workflows.
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
55a25427fc
Add initialize hook to register automation integrations
...
Those need to be registered after Automation engine is initialized.
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
634cd11af9
Add automation integration interface
...
An integration is a set of triggers, actions, subjects, etc.
(E.g. "MailPoet integration".)
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
db21cfa8a5
Add registry service for workflow triggers and actions
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
c97476e8c3
Add controller to create workflows via REST API
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
41cb2c4034
Add storage service for workflows & create workflow method
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
97ad4cffb5
Add interface for workflow actions
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
ee6cdeceab
Add interface for workflow triggers
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
bc1b27a53b
Add workflow run data object
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
37b2c29eab
Add workflow run table
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
b742a394b2
Add workflow step data definition
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
3e6a4fd557
Add workflow data object and an empty step object
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
020309e916
Add status and trigger keys workflow columns
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
5a5c11cbbe
Rename workflow data column to steps
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
a08aaabc55
Fix 'deleted_at' column not being nullable
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
a3198a6a87
Fix passing args to WordPress hook
...
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
da2621230d
Move automation engine code under "Engine" namespace
...
This is to separate the engine itself from "integrations" that will be
built on top of the engine.
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00