3/24/2023 0 Comments Modelio activity diagram event![]() You could use this to let the Parameter be of type House, but the OutputPin-Type would be Flat. This is correct for InputPins, but should be the opposite for OutputPins. In your specific example there is an even easier solution: simply fork the ObjectFlow of Type Flat and omit the OutputPin of Assign Resident to Housing.Īs a side note: Due to a bug in Cameo, you can change the type of the OutputPin to a more specific Type than that of the ActivityParameter. Maybe this should be documented with a local postcondition. It is the modelers responsibility to ensure, that this cast will always work, since no exception handling can be defined here. Just assign an OpaqueBehavior that casts the Type House to the Type Flat. The solution is to use the transformation property of the ObjectFlow. Therefore the UML specification choose the easy road and simply doesn't allow to connect the pins. However, it would be really hard to define a complete set of compatibilty rules that takes into account all the global and local pre- and postconditions and the tools would also be hard pressed to validate a model according to these rules. The correct way to capture this fact would be to add a postcondition to Activity Assign Resident to Housing that states that the type of the input and output pin will be the same. I know, in your context it can only return a Flat, but how should the tool know that? Give Flat Floor expects a Flat and will not work with a House, but Assign Resident to Housing could return a House. I'm Trying to fit as best as I can within the rules of UML Language.Ĭameo is right in rejecting this model.between those states in response to event occurrences. I'm representing this in modelio but first had this issue in Cameo. UML, and SysML to many organizations and within the college setting.all type of object flow are class and inherit from a same other class.My question is: how to represent in an activity diagram, an action that is the same for different type of Object flows as input, and that give the updated Object flow as output (that may be therefore of different type)? I don't really know if I must create two actions (one for house and another for flats) or if there is a way to reuse the action for both class and have a correct output out of it. I want this action to give an updated house or flat as output (not an updated housing as this would mean that information specific to the house or flat would be lost. This action can take either house or flat as input (so the use of "housing" type for the input pin is correct I think) as well as an undefined number of people. In an activity diagram, I want to represent the action of giving persons a housing. Housing contain an attribute "residents" for the person living in it.įlat contain an attributes "floor" that says at which floor the flat is. both are a generalization of the class "housing". Let say that I have two class named "flat" and "house". Here is an example to better understand my question: At this macroscopic level, there is no sequence between processes, even if we are able to see that the products sent by a process can be re-used by another process.I have a question regarding modeling on an Activity Diagram that has been bothering me for some time and I was not able to find any answers / Convention anywhere. Event diagrams present a general view of processes, trigger events, sent events, participating roles or organization units, as well as received or sent products. It is important to note that the event has to trigger a process and generate a business response or result.Įvent diagrams provide an overview of processes, which helps in their mapping. See UML Superstructure Specification, v2.1.1, figure. These are often referred to as business events or simply events, and are considered as triggers for a process. UML Activity Diagram example showing use of an ObjectFlow Connector in Sparx Systems Enerprise Architect. Certain events, such as the arrival of certain information (for example, a customer submits a sales order) or a certain point in time (for example, end of fiscal quarter) cause work and certain actions need to be undertaken within the business. ![]() The purpose of the event diagram is to depict the relationship between events and process. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |