UML sequence diagram: how do i draw cron job?

2019-04-06 04:43发布

问题:

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:

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.

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