我有多个单序列图。它们中的大多数具有相同的初始化和终止序列。
可以将其从一个文件复制到另一个文件,但如果可以在单个点声明该部分会更好。因此,如果发生更改,则无需更改所有图表。
有没有办法做到这一点 ?
我尝试按第一个屏幕截图所示排列组件和包。有没有机会这样做(截图1)

请在此处找到我当前的方法(屏幕截图 2)
和这里的 uml 脚本:
@startuml
package "packageA" {
[componentA]
}
package "packageB" {
[componentB1] - [componentB2]
[componentB2]
}
package "packageC" {
[componentC1] - [componentC2]
[componentC2]
}
package "packageD" {
[componentD]
}
componentA --> componentB1
componentA --> componentC1
componentB2 -right-> [componentD]
componentC2 -right-> [componentD]
@enduml
Run Code Online (Sandbox Code Playgroud) 我正在使用 PlantUML 创建活动图。
Modify Details我想要的是出去的箭头OP2而不是菱形。
我有这个图:
@startuml
|Swimlane1|
start
:OP1;
|Swimlane2|
:OP2;
if (Form Valid?) then (No)
|Swimlane1|
:Modify Details; /' <-- This should point _back_ to OP2 '/
|Swimlane2|
else (Yes)
:Add Detals to System;
endif
:OP3;
|Swimlane2|
:foo5;
stop
@enduml
Run Code Online (Sandbox Code Playgroud)
这给出了这个图像:
我正在尝试使用 PlantUML(新测试语法)制作活动图。
到目前为止,我想出了(简化的):
@startuml
start
:A;
if (Q1) then (yes)
:B;
if (Q2) then (yes)
:D;
else (no)
:E;
endif
else (no)
:C;
endif
stop
@enduml
Run Code Online (Sandbox Code Playgroud)
这意味着,如果第一个问题是,则执行A,否则执行B,否则执行C。在B问问题2之后,如果是,则执行D,如果否,则执行E。
当问题 2 的答案为“否”时,我不想指向 E,而是转到活动 C,但我不知道如何引用它。如果我输入 :C; 那里(而不是:E;它只是被解释为一个新活动(但是它的流程应该从那里的 C 继续)。我假设有一种方法可以使用 PlantUML 绘制这样的流程,但我还没有看到它。
引用已定义的活动的最佳方式是什么?
I like to generate images from .puml files in a maven project.
What i do not like to archivee is a hard binding between the project and the library that generates the images. So I like to use this build command:
mvn com.github.jeluard:plantuml-maven-plugin:1.2:generate \
-Dplantuml.outputDirectory=target \
-Dplantuml.sourceFiles={*.puml}
Run Code Online (Sandbox Code Playgroud)
So the third line fills the sourceFiles-class-variable
Unfortunately the syntax {*.puml} seems to be wrong:
[INFO] --- plantuml-maven-plugin:1.2:generate (default-cli) @ test ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.047 …Run Code Online (Sandbox Code Playgroud) 亲爱的社区成员和 PlantUml 从业者,
我想要两个同名的课程,例如:
我想在这两个类之间建立联系。是否可以在类图中为类创建别名,以便我可以区分这些类,从而将它们表示为两个不同的元素。
任何想法?
我正在将 doxygen 用于我的个人项目,并希望在我自己创建的页面(markdown 页面)上使用任何类型的 UML 语言。我并不是想在代码中使用它(它确实有效),而是在我自己创建的文档上,请参阅下面的示例:
# Example
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```plantuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
```
```mermaid
sequenceDiagram
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> …Run Code Online (Sandbox Code Playgroud) 使用 PlantUML 生成包含图例和页脚创建了一个序列图。
页脚包含我公司的名称和版权日期。
图例非常接近页脚,我需要在图例和页脚之间插入一个新行(或 a<br>或 a )。<p>另外,我的标题似乎在标题和图例之间有很大的空间。
我的 puml DSL 文件:
@startuml
skinparam Shadowing false
title __Dating API Sequence Diagram__\n
caption \nVersion 1.0 - 6/26/2020 (Draft)\n
autonumber
activate DatingApp
DatingApp -> DatingRestController: hitExternalApi()
activate DatingRestController
DatingRestController -> DatingService: processService()
activate DatingService
DatingService -> DatingService: findProfile()
activate DatingService #90EE90
DatingService -> DatingService: doSomething()
DatingService -> DatingService: doSomethingElse()
deactivate DatingService
DatingService -> DatingRestController: return retValue
DatingRestController -> DatingApp: jsonPayload
deactivate DatingRestController
deactivate DatingApp
legend bottom right
Legend …Run Code Online (Sandbox Code Playgroud) 是否可以将从 DataGrip 导出的 *.uml 格式的数据库图表转换为 draw.io 支持的图表?或者是否有可能以某种方式将其转换为 PlantUML -> 这也可以加载到draw.io..
编辑:
我必须将 plantuml 图转换为 mermaid 图。有没有办法以某种方式从 plantuml 图生成美人鱼图?感谢您的回答
我尝试过搜索但没有人在这里问过