Hi folks,
This is more of a SysML question than and EA-specific, but hoping to get some insight/suggestions.
I'm trying to figure out how to represent control logic, like a while loop in a SysML Activity Diagram. In my case, I have a behavior I want to model in an Activity Diagram that looks at a collection of things that are candidates for some change. There may be from zero to several items that have to change.
I don't know how to handle that. I do understand about IF-THEN-ELSE Decision nodes. I just don't know how to do conditional looping in order to operate on a set of items from 0 to many.
Sequence Diagrams have this ability, but in this case, an AD is more appropriate, because I'm not calling out to some other component/service, so there is no 'interaction'. So, like I mentioned, I'm trying to do this as an Activity Diagram.
Here's an attempt to boil down the construct:

I think that in the above, the "get all..." action will produce a collection of one or more FOOs, which will be consumed one at a time by the "Do something..." action. But two things that I don't know how to do:
1- how do I handle there not being any FOOs that matched the criteria? I'd like to wind up at the "No FOOs..." SendSignal action. I can't figure out how to get there.
2- if one or more FOOs are found, I believe that the above will "Do something..." to them one at a time, but how do I know when I am at the end of the set so that I can go on to the "At Least One..." SendSignal action, and just as importantly, how do I only get there once?
In a nutshell, at the end of the activity, I only want to send one signal; one of the two listed.
Thanks for the help...
Miguel