Open
Description
Description
The following is a simplified diagram that renders in the live editor, including the destroy
directive right in front of an alt
block.
Unfortunately the participant is not destroyed when rendering this diagram:
Steps to reproduce
sequenceDiagram
participant R as Request
create participant A
R->>A: POST /enqueue
A->>A: validate
destroy A
alt isValid
A-)Q: Enqueue Message
A->>R: 202 Accepted
else isError
A->>R: Validation Error Reply
end
Q->>Q: Queue Shenanigans
Q-)R: Async Reply
box transparent Service
participant A as API
participant Q as Queue
end
Screenshots
Code Sample
https://develop.git.mermaid.live/edit#pako:eNplUT1rwzAQ_SuHtkBKS0YNBkEzdCiN7ZLJy1W-OiK25EpyqAn57z1HNm2xBiHufdzd01VoV5OQItDXQFbTs8HGY1dZ4NOjj0abHm2EAjBAMbFCrGzCtSeM9I-mElI8ZJmScHgr3-GRLKsGSohKyAVbU7M4FdNds7V34-KBbQQTjhMxFZJ8k0vYJ0d4pRCwob9wlhUSdk87UFpTH2nWUhuI3fbeO7-iH9Mwxlm4E3jPvh1noa2XdXNmc_P83ro8kUVrGrRhQTdspcJo9aJPwIf7huiZxzkRR1SSvxhN64jVFLE6vKyRfELy3xB5KLEVHfkOTc2_d53KlYgn6qgSkp81-nMlKntjHg7RlTyWkNEPtBVDPyU__7SQn8jZ3H4AynClPg
Setup
- Mermaid version: 10.6.1+6e64556
- Browser and Version: Repro on both Edge 120.0 and Firefox 120
Suggested Solutions
The underlying issue is IMO that the destroy directive requires a message, which seems inappropriate when compared to activate
and deactivate
(as well as for combination with blocks as final action on a participant)
Additional Context
No response