如何使用邮件启动 AWS SWF 工作流程?
How to start AWS SWF workflow with a mail?
我已经在 SWF 中定义了一个工作流程,在 Java 代码中实现了工作人员,它按预期工作。但是,我希望能够通过发送邮件来启动它的一个实例。这样做的好习惯是什么?有发布的例子吗?欢迎任何帮助。
没有适合您的示例,但您可以使用 AWS SES 接收传入的电子邮件,然后可以将 SES 设置为在收到后调用 Lambda 函数,一旦 运行 在 Lambda 中,您几乎可以做任何你想要的 - 包括启动一个 SWF worker。
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html
Creating Receipt Rules for Amazon SES Email Receiving
A receipt rule enables you to specify what you want Amazon SES to do
with mail it receives for one or more recipients or domains. The
receipt rule consists of a condition and an ordered list of actions.
If the recipient to which the incoming mail is addressed matches a
recipient specified in the condition, then Amazon SES performs the
actions specified in the receipt rule. For more information about the
role of receipt rules in the email-receiving process, see
Email-Receiving Concepts.
我已经在 SWF 中定义了一个工作流程,在 Java 代码中实现了工作人员,它按预期工作。但是,我希望能够通过发送邮件来启动它的一个实例。这样做的好习惯是什么?有发布的例子吗?欢迎任何帮助。
没有适合您的示例,但您可以使用 AWS SES 接收传入的电子邮件,然后可以将 SES 设置为在收到后调用 Lambda 函数,一旦 运行 在 Lambda 中,您几乎可以做任何你想要的 - 包括启动一个 SWF worker。
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html
Creating Receipt Rules for Amazon SES Email Receiving
A receipt rule enables you to specify what you want Amazon SES to do with mail it receives for one or more recipients or domains. The receipt rule consists of a condition and an ordered list of actions. If the recipient to which the incoming mail is addressed matches a recipient specified in the condition, then Amazon SES performs the actions specified in the receipt rule. For more information about the role of receipt rules in the email-receiving process, see Email-Receiving Concepts.