Windows 工作流基础中命名工作流活动的约定是什么?
命名活动时应遵循哪些命名约定?例如,向用户发送电子邮件的 CodeActivity 的名称应该是什么。
What naming conventions to be followed when naming the activities?. For example what should be the name for a CodeActivity that sends email to the user.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如莫西提到的那样,我会选择有意义的名称,但另外我会添加后缀“活动”。
对于您的具体情况,我会将活动命名为 SendMailActivity。
原因:
如果您检查 .Net 框架中的活动,它们只有一个有意义的名称(WriteLine、Assign),
这只是个人喜好。最后最好与团队其他成员讨论以同意召开大会。
I would go for meaningful name as Maurcie mentioned but additionally I would ad the suffix Activity.
For your concrete case I would name the activity SendMailActivity.
Reasons:
If you check the activities from .Net framework they have only a meaningful name (WriteLine,Assign)
It's just a personal preference. In the end is better to discuss with the rest of the team in order to agree for a convention.
没有真正的约定。我的一般建议是为查看工作流程图的人使用有意义的名称,因为这是他们了解活动功能的全部内容。
There is no real convention. My general advise is to use meaningful names for people who look at the workflow diagram as that is all they have to see what an activity does.