using alt in sequence diagrams for starUML

arinjita paul picture arinjita paul · Apr 22, 2013 · Viewed 41.8k times · Source

i am not able to discover how to use the alt/combined fragment correctly in starUML,as in there is no way that i am able to provide the condition after the alt fragment appears.can any1 just list down the procedure as to how to do it or a link to some good tutorial.

Answer

Haider7 picture Haider7 · Nov 29, 2014

If you are using StarUML 2 (Beta), you can go through these simple steps:

  1. Add Combined fragment to your sequence diagram:

Initial View after adding combined fragment

  1. If you try to add operand(alt partition) through context menu, you'll see that there's no option to add new operand:

No option to add operand in starUML 2 Beta

3.To achieve this, you can simple copy the already defined operand and paste it under Combined Fragment:

Copying Operand in starUML 2 Beta

Pasting operand in starUML 2 Beta

  1. After that, simply add condition clauses in "guard" property of operands and adjust operand heights:

Alt implemented in sequence diagram