Remove arrow to a connector

0 votes
asked Jan 17, 2021 in Question / help by anonymous

Hello everybody,

I have a little problem: i would like to remove an arrow from an activity diagram, but it appaers it's a forbidden action to use "kill" in a split. This is the diagram:

I would like to suppress the arrow from start to "A". Is it possible ? The idea is to have an arrow between "Mise à jour" and "A" without any arrow to "A". If you want the code behind the diagram this is it:


@startuml
|Auteur|
start
split
:Ecriture;
split again
(A)
:Mise à jour;
end split
:Document
[Brouillon] ]
|Lecteur|
:Révision rapide;
:Document
[corrigé] ]
|Chef|
:Validation du document;
if(document validé ?) then (non)
    (A)
    detach
else
    |Chef|
    :Document
    [approuvé] ]
    |Lecteur|
    :Lecture appronfondie;
    if(besoin de corrections ?) then (oui)
        :Liste des modifications ]
        (A)
        detach
    else (non)
        |Archiviste|
        :Archive le document;
        stop
    endif;
endif;

@enduml

Thank you very much for your help :)

2 Answers

0 votes
answered Jan 18, 2021 by The-Lu (64,340 points)
 
Best answer

Hello A.,

After new search on the forum, I discover:

Then a second workaround (satisfying: without horizontal line on the top!) is to add hidden arrows as:

@startuml
|Auteur|
split
-[hidden]->
start
:Ecriture;
split again
-[hidden]->
(A)
:Mise à jour;
end split
:Document
[Brouillon] ]
|Lecteur|
|...|
@enduml


[See on PlantUML online server]

If that can help,
Regards,
Th.

0 votes
answered Jan 17, 2021 by The-Lu (64,340 points)

Hello A.,

A first workaround (not so satisfying: because it remains always a horizontal line on the top!) is to add transparent arrows as:

@startuml
|Auteur|
split
-[#00000000]->
start
:Ecriture;
split again
-[#00000000]->
(A)
:Mise à jour;
end split
:Document
[Brouillon] ]
|Lecteur|
|...|
@enduml


[See on PlantUML online server]

If that can help,
Regards,
Th.

commented Jan 18, 2021 by anonymous
Ok :)

Thank you for your help :)
commented Jan 18, 2021 by Martin (8,360 points)
clever idea.

PS I expected to be able to replace -[#00000000]-> with -[#transparent]-> to make it more readable. But ended up with pixels going missing, so I guess they are not the same kind of transparency!  Not sure if that's a bug or not...?
commented Jan 18, 2021 by The-Lu (64,340 points)
Yes, it's a bug, but I didn't have time to open it!
Let's Go...
commented Jan 18, 2021 by The-Lu (64,340 points)

Hello all and PlantUML team,

For the horizontal line on the top!, see also this request:

But See the new answer... the best workaround is with 'hidden' arrow...

Regards,
Th.

...