use of a join and a fork node in sequence in activity diagram?

77 Views Asked by At

I have to make an activity diagram for a hair salon scenario, I think it may be bad practice or even fully incorrect to use a join node and a fork node straight after one another as I have done.

Is this allowed?

Activity diagram here

2

There are 2 best solutions below

4
Jim L. On

Those join nodes will hang forever, waiting for the paths not taken from the decision nodes to offer tokens. Replace them with merge nodes.

To be able to make correct activity models, you should read Conrad Bock's six-part series of articles on the UML 2 Activity and Action Model, especially part 6.

2
qwerty_so On

That won't work. You will have either dry-cut or washed. So the following join will always get only one token, but needs 2 to continue. Replace it with a diamond-shaped merge node and it's ok.