umldiagramactivity-diagram

How to represent Activity Diagram with multiple scheduled background jobs?


I would like to know what is the correct way to visualize background jobs which are running on a schedule controlled by scheduling service?

In my opinion the correct way should be to have an action representing the scheduling itself, followed by fork node which splits the flow for each of the respective scheduled jobs.

enter image description here

Example. On a schedule Service X is supposed to collect data from an API every day, on another schedule Service Y is supposed to aggregate the collected data.

I've tried to research old themes and find any diagram representing similar activity.


Solution

  • Your current diagram says that:

    The way it should work would be:

    Note that the UML specifications do not specify how parallelism is implemented. And neither does your scheduler: whether it is true parallelism using multithreaded CPUs or multiple CPUs, or whether it is time slicing where some interruptions are used to switch between tasks that are executed in reality in small sequential pieces is not relevant for this modeling.

    The remaining challenges are: