Commit Graph

13 Commits

Author SHA1 Message Date
Jan Jakes
494cc7b780 Allow multiple subjects of the same type
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
Jan Jakes
a073f05ffe Shorten automation table names
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
Jan Jakes
5c87442c6b Fix subject initialization in workflow runs
[MAILPOET-4454]
[MAILPOET-4449]
2022-07-04 14:09:00 +02:00
Jan Jakes
92d55362b1 Add update workflow method to storage
[MAILPOET-4454]
2022-07-04 14:09:00 +02:00
Jan Jakes
47c5111996 Add method to fetch list of workflows to workflow storage
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
David Remer
cb55cae1b2 Escape SQL queries following wp org sniffs
[MAILPOET-4129]
2022-04-04 17:12:33 +02:00
Jan Jakes
3a22521a55 Add json encode/decode wrapper class
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
b62bc21849 Enqueue next step or complete workflow in step runner
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
a7cd2b74b4 Fetch workflow, workflow run, and step in workflow step runner
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
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
41cb2c4034 Add storage service for workflows & create workflow method
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00