From b3591aeefdc71473648271002508b840c4bc70a7 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Tue, 17 Oct 2023 21:17:08 +0200 Subject: [PATCH] new: [workflow-module:publish-event] Added draft of module --- .../action/Module_publish_event.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app/Model/WorkflowModules/action/Module_publish_event.php diff --git a/app/Model/WorkflowModules/action/Module_publish_event.php b/app/Model/WorkflowModules/action/Module_publish_event.php new file mode 100644 index 000000000..afc86a7a6 --- /dev/null +++ b/app/Model/WorkflowModules/action/Module_publish_event.php @@ -0,0 +1,28 @@ +Event = ClassRegistry::init('Event'); + $this->params = [ + ]; + } + + public function exec(array $node, WorkflowRoamingData $roamingData, array &$errors = []): bool + { + $result = $this->Event->publish($event_id, null); + return $result === true; + } +}