UML sequence diagram: how do i draw cron job?

2019-04-06 04:10发布

I'm developing a application that take advantages of restaurants dataset. Every 1 week my system will run a cron job to synchronize the restaurants that is available on a public api to my database.

However how do i draw the sequence diagram for this cron job? Who is the actor?

1条回答
何必那么认真
2楼-- · 2019-04-06 04:36

The actor would be some scheduler (or you can use the Cron object if you like). The target would be your Synchronizer object doing all that fancy web scanning.

enter image description here

You can use a loop fragment to show the repetition. A simple note would do as well :-)

查看更多
登录 后发表回答