处理开发、测试和生产之间的共享点工作流程差异
您如何处理不同的时间延迟并根据用户运行的环境(开发、测试和生产)向不同的用户发送通知?
我们正在开发长期运行的工作流程,我们希望在开发和测试环境中延迟几分钟,但在生产中需要延迟几天。
这些相同的工作流程需要向开发环境中的我们以及测试和生产环境中的业务用户发送通知。
处理此类情况的最佳实践是什么?
How do you handle having different time delays and sending notifications to different users based on the environment they are running in (dev, test & production)?
We are developing long running workflows that we would like to have delay for minutes in our dev and test environments, but need to delay for days in production.
These same workflows need to send their notifications to us in the dev environment and business users in the test and production environments.
What are the best practices for handling these types of situations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将延迟值存储在列表中,然后根据您所在的环境更改这些值。
如果您在 Visual Studio 中创建工作流,则可以根据运行工作流的站点的主机名更改延迟值。
Store the delay values in a list, and just change the values based on which environment you are in.
If you were creating the workflow in Visual Studio, you could vary the delay value based on the host name of the site the workflow is running on.