Skip to content

Add support for execution specifications #156

Open
@Andrew-Dunn

Description

@Andrew-Dunn

It would be great if support would be added for execution specifications, which are the thin grey rectangles which identify the beginning and end of an action being executed. Ideally we could support overlapping execution specifications too.

In websequencediagrams.com, the syntax used to denote execution specifications is by prepending the target actor with a + or -, so the following sequence:

Bob->+Alice: Say Hello
note right of Alice: Process salutation.
Alice->-Bob: Say Goodbye.

Would be rendered like this:

Image

I personally don't think this is a great syntax as when ending an execution you are using the - character on the other actor, which doesn't make a whole lot of sense. This also makes it impossible to do things like ending an execution on one lifeline and immediately beginning a new execution specification on the target actor, which is common with asynchronous communications.

So I'm proposing we instead prepend the + or - modifier to the lifeline/actor which is actually being modified, always, so the above example would actually be written as:

Bob->+Alice: Say Hello
note right of Alice: Process salutation.
-Alice->Bob: Say Goodbye.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions