UML用例:如何为“批次"建模?特征? [英] UML Use Cases: how to model a "batch" feature?

查看:102
本文介绍了UML用例:如何为“批次"建模?特征?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否应将批量计划的流程(例如,夜间流程)建模为用例?这是系统应做的事情,但是没有Actor使用"该功能,因为它是已计划的.

Should a batch scheduled process (for example, a nightly process) be modeled as a Use Case? it is something the system should do, but there is not an Actor "using" the feature, because it is scheduled.

有什么建议吗? 谢谢!

Any suggestions? Thanks!

推荐答案

我们已经定义了一个"Scheduler"角色来对该场景进行建模.调度程序通常具有自己的一组用例,这些用例是批处理作业,或者需要定期运行的可执行文件等.例如,用例可以这样写:一天运行24次的工作.我们尽量不包含太多此类情况,因为很容易陷入实施细节中.我们一直等到必须安排真正重要的活动,例如会计部门的每月结帐程序.他们没有提及任何软件细节(例如调度软件的名称),只是用例是由调度者在给定的日期和/或时间触发的.

We've defined a 'Scheduler' actor to model that scenario. The Scheduler usually has its own set of use cases which are batch jobs, or executables that need to run regularly, etc. For example, the Use Case can be written like "The Use Case begins when the current time is on the hour" for a job that runs 24 times a day. We try not to include too many of these cases because it is too easy to get bogged down into implementation details. We wait until really important activities have to be timed, like monthly close procedures for the accounting department. They don't mention any software specifics (like the name of the scheduling software), just that the Use Case is triggered by the Scheduler actor on a given day and/or time.

这篇关于UML用例:如何为“批次"建模?特征?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆