I was wondering, how do you implement a different process in an activity diagram? For example, I have following diagram:
Now, if I want to show in the diagram that the system should backup all files on my computer every 10 pm, how would I do this?
EDIT:
Take a look at the Accept Time Event Action as depicted below.
Use a decision symbol to state two separate works, and the hour glass for waiting.
Related
I would like to create an activity diagram in which one of the actions is depicted with its sub-actions.
To better clarify I would like to be able to depict something like the following diagram
The problem in my case is that SubActivity1 does not have any input parameter. I just want SubActivity1 to start its execution when OpaqueAction1 is completed.
I know that it is possible to use a CallBehaviorAction to express that an Action will result in the execution of another Activity like in the following diagram
But, in this way I cannot depict the sub-actions in the same activity diagram.
I also thought of using a StructuredActivityNode like in the following diagram
here the problem is that I am not able to show the name of the StructuredActivityNode. I do not know whether this is an issue of the tool that I am using (Papyrus) or it is a general issue.
What you always can do it to use diagram frames and place them inside an activity:
If you need to pass parameters and make use of them inside an activity you can do it this way:
The action pin on Action1 takes the parameter to process it. As you see, you can also place the contents of an Activity manually inside its frame.
An activity is completed when it has reached its last action. More explicitly you should use a flow final to show that. I omitted it in the first example since your examples lacked it. But I usually place it at the end of each (sub-)flow.
My activity diagram would be too big and complex, so I decided to split it into many diagrams. I replaced one branch with another diagram and I linked it into the first diagram, which looks well. I designed the second diagram but I do not know, how to start it.
I think that there must be link to the first diagram. But is it enough or shall there be initial activity (circle) before it? See attached images.
On the contrary, the initial node is excessive on the second diagram. It is already included in the start activity. It is OK to say that the whole activity diagram is an activity in another activity diagram. Look at starting diagram here - a group of activities is concluded in activity frame, as a larger activity.
Also think about using Interaction overview diagram. It is just for showing structured activity diagrams.
in an activity dgm .. if an activity involves two sub activities..
should i make separate ending nodes for sub activities?
Should I make one ending node for main activity only ?
This is what i wants to say
Well, I would say that setting one ending node for your main activity can be enough. The ending node represent the termination of the whole activity you depict in your diagram. Thus the ending nodes as you put them are clearly invalid.
You can however describe ViewDetails and EditDetails with sub-activities. It that case, you can also terminate them with an ending point. In that case the ending is in the context of your activity. See here.
Personally I would create distinct diagrams for such a purpose but it seems that it is possible to represent this inside an action.
The diagram You have drawn so far is wrong. Activity diagrams represent the flow of control from activity to activity in the system.In your diagram "My profile" should not be an activity.And you need to represent activities in rounded rectangles.You can make decision point to separate the "view details" activity from the "Edit details" activity. Typically there is one starting point for the workflow and there may be more than one ending point. (one for each alternate flow in the workflow)
i`m wondering what is the way to display an event which appears after some period of time on a use-case realization diagram. For example lets say an actor taps a display of his smart phone, the display turns on and in 5 minutes it turns off. Is it allowed in UML to write a message on event like "DisplayOFF(5min)",if not, what is most proper way?
What do you mean by "use-case realization diagram"? UML use case diagrams are unaware of sequence flows. It is also quite solution-independent, because it is rather meant to show objectives of a system. Have a look at UML sequence diagrams and check whether or not they satisfy your prescribed need.
I have a part of my program which can be called by various events. Each event however does something different before making use of this part. How can I represent these using a diagram? I was thinking of a flowchart but as far as I know a flow chart can have one start terminal, right?
Thanks a lot for the help,
Regards,
Krt_Malta
UML Activity Diagram.
http://www.ibm.com/developerworks/rational/library/2802.html
You have a "wait for event" node that has multiple incoming events. Each event has a different state transition.