UML – Representing Multiple Actions for Sequence of Objects on Activity Diagram

activityuml

EDIT: This question led to another, namely Representing handlers on UML diagram.

I'm trying to create an Activity Diagram that shows that a collection of objects is handled by a collection of handlers. Something along the lines:

Objects objs = { ... };
Handlers handlers = { ... };

for (o in objs) {
    for (h in handlers) {
        h.handle(o);
    }
}

It is a real world problem, we have a list of dates and we want to call an unknown number of processes, in order, sequentially, and pass this date to each one. Is it something that can be easily shown on activity diagram?

When it comes to drawing I'm basically stuck in initial node, so there's not much to show in response to "show us what you have already".

Update:

After reading yesterday about expansion regions and objects and few other things, I came up with the following:

Active objects - proposition

Best Answer

While your question is a very specific one it actually winds down to a question how to represent a loop using an activity diagram. I strongly recommend checking this answer. In your case I guess the first approach from the answer is the most suitable.

Related Topic