我想在每个“提交”事件中从CMS发送Slack通知。我成功地在Slack中触发了现有事件,但是当我将以下代码包含在节点模块包中以进行撇号外部通知时,如下所示,我没有收到任何通知。
self.notifyOn('apostrophe-workflow:afterSubmit', (req, submit) =>
['{user} submitted the {type} {title} which has these tags: {string}.', submit.from, submit.from, submit.from.tags]
);
afterSubmit
不是此撇号工作流当前发出的服务器事件。该操作只有一个浏览器事件workflowSubmitted
。
Update 2020-03-05:此事件从apostrophe-workflow@2.32.0
开始添加。