v2.1 extended analysis render update
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 94 KiB |
@@ -2,81 +2,78 @@
|
||||
!pragma layout smetana
|
||||
hide empty description
|
||||
hide stereotype
|
||||
state SUBMITTED
|
||||
state PAID
|
||||
state FULFILLED
|
||||
state CANCELED
|
||||
state PAID2
|
||||
state PAID3
|
||||
state PAID1
|
||||
state HAPPEN
|
||||
skinparam state {
|
||||
BackgroundColor white
|
||||
BorderColor #94a3b8
|
||||
BorderThickness 1
|
||||
FontName Inter
|
||||
FontSize 9
|
||||
FontStyle bold
|
||||
RoundCorner 20
|
||||
Padding 1
|
||||
}
|
||||
skinparam shadowing false
|
||||
skinparam ArrowFontName JetBrains Mono
|
||||
skinparam ArrowFontSize 8
|
||||
skinparam ArrowColor #cbd5e1
|
||||
skinparam ArrowThickness 1
|
||||
skinparam dpi 110
|
||||
skinparam svgLinkTarget _self
|
||||
state OrderStatesSUBMITTED
|
||||
state OrderStatesPAID
|
||||
state OrderStatesFULFILLED
|
||||
state OrderStatesCANCELED
|
||||
state OrderStatesPAID2
|
||||
state OrderStatesPAID3
|
||||
state OrderStatesPAID1
|
||||
state OrderStatesHAPPEN
|
||||
|
||||
<style>
|
||||
state {
|
||||
.choice {
|
||||
BackgroundColor LightYellow
|
||||
}
|
||||
[*] --> OrderStatesSUBMITTED
|
||||
|
||||
state OrderStatesSUBMITTED <<choice>>
|
||||
state OrderStatesPAID <<choice>>
|
||||
|
||||
OrderStatesSUBMITTED -[#1E90FF,bold]-> OrderStatesPAID <<external>> <<e_OrderEvents_PAY>> : OrderEvents.PAY
|
||||
OrderStatesPAID -[#1E90FF,bold]-> OrderStatesFULFILLED <<external>> <<e_OrderEvents_FULFILL>> : OrderEvents.FULFILL
|
||||
OrderStatesSUBMITTED -[#1E90FF,bold]-> OrderStatesCANCELED <<external>> <<e_OrderEvents_CANCEL>> : OrderEvents.CANCEL [new Guard<OrderStates,OrderEvents>(){
|
||||
@Override public boolean evaluate( StateContext<OrderStates,OrderEvents> context){
|
||||
return false;
|
||||
}
|
||||
arrow {
|
||||
LineThickness 1
|
||||
.external { LineColor #1E90FF }
|
||||
.internal { LineColor #32CD32 }
|
||||
.local { LineColor #FFA500 }
|
||||
.junction { LineColor #FF69B4 }
|
||||
.join { LineColor #8A2BE2 }
|
||||
.fork { LineColor #20B2AA }
|
||||
.choice_type { LineColor #000000 }
|
||||
.choice_color_0 { LineColor #FF6347 }
|
||||
.choice_color_1 { LineColor #4682B4 }
|
||||
.choice_color_2 { LineColor #32CD32 }
|
||||
.choice_color_3 { LineColor #FFD700 }
|
||||
.choice_color_4 { LineColor #6A5ACD }
|
||||
.choice_color_5 { LineColor #FF69B4 }
|
||||
|
||||
}
|
||||
]
|
||||
OrderStatesPAID -[#1E90FF,bold]-> OrderStatesCANCELED <<external>> <<e_OrderEvents_CANCEL>> : OrderEvents.CANCEL
|
||||
OrderStatesSUBMITTED -[#1E90FF,bold]-> OrderStatesSUBMITTED <<external>> <<e_OrderEvents_ABCD>> : OrderEvents.ABCD
|
||||
OrderStatesSUBMITTED -[#FF6347,bold]-> OrderStatesPAID2 <<choice_type>> : [new Guard<OrderStates,OrderEvents>(){
|
||||
@Override public boolean evaluate( StateContext<OrderStates,OrderEvents> context){
|
||||
return false;
|
||||
}
|
||||
/* Example: Highlight all transitions for a specific event */
|
||||
/* .e_MY_EVENT { LineColor red } */
|
||||
</style>
|
||||
}
|
||||
] (order=0)
|
||||
OrderStatesSUBMITTED -[#FF6347,bold]-> OrderStatesPAID3 <<choice_type>> : (order=1)
|
||||
OrderStatesPAID -[#FF6347,bold]-> OrderStatesPAID1 <<choice_type>> : [new Guard<OrderStates,OrderEvents>(){
|
||||
@Override public boolean evaluate( StateContext<OrderStates,OrderEvents> context){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
] (order=0)
|
||||
OrderStatesPAID -[#FF6347,bold]-> OrderStatesPAID2 <<choice_type>> : [guard1] (order=1)
|
||||
OrderStatesPAID -[#FF6347,bold]-> OrderStatesHAPPEN <<choice_type>> : [new Guard<OrderStates,OrderEvents>(){
|
||||
@Override public boolean evaluate( StateContext<OrderStates,OrderEvents> context){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
] (order=2)
|
||||
OrderStatesPAID -[#FF6347,bold]-> OrderStatesPAID3 <<choice_type>> : (order=3)
|
||||
OrderStatesPAID2 -[#1E90FF,bold]-> OrderStatesCANCELED <<external>>
|
||||
OrderStatesPAID3 -[#1E90FF,bold]-> OrderStatesCANCELED <<external>>
|
||||
OrderStatesPAID1 -[#1E90FF,bold]-> OrderStatesPAID1 <<external>> <<e_OrderEvents_ABCD>> : OrderEvents.ABCD / new Action<OrderStates,OrderEvents>(){
|
||||
@Override public void execute( StateContext<OrderStates,OrderEvents> context){
|
||||
;
|
||||
}
|
||||
}
|
||||
, action2
|
||||
|
||||
hide <<external>> stereotype
|
||||
hide <<internal>> stereotype
|
||||
hide <<local>> stereotype
|
||||
hide <<junction>> stereotype
|
||||
hide <<join>> stereotype
|
||||
hide <<fork>> stereotype
|
||||
hide <<choice_type>> stereotype
|
||||
hide <<choice_color_0>> stereotype
|
||||
hide <<choice_color_1>> stereotype
|
||||
hide <<choice_color_2>> stereotype
|
||||
hide <<choice_color_3>> stereotype
|
||||
hide <<choice_color_4>> stereotype
|
||||
hide <<choice_color_5>> stereotype
|
||||
|
||||
[*] --> SUBMITTED
|
||||
|
||||
state SUBMITTED <<choice>>
|
||||
state PAID <<choice>>
|
||||
|
||||
SUBMITTED -[#1E90FF,bold]-> PAID <<external>> <<e_OrderEvents_PAY>> : PAY
|
||||
PAID -[#1E90FF,bold]-> FULFILLED <<external>> <<e_OrderEvents_FULFILL>> : FULFILL
|
||||
SUBMITTED -[#1E90FF,bold]-> CANCELED <<external>> <<e_OrderEvents_CANCEL>> : CANCEL [λ]
|
||||
PAID -[#1E90FF,bold]-> CANCELED <<external>> <<e_OrderEvents_CANCEL>> : CANCEL
|
||||
SUBMITTED -[#1E90FF,bold]-> SUBMITTED <<external>> <<e_OrderEvents_ABCD>> : ABCD
|
||||
SUBMITTED -[#FF6347,bold]-> PAID2 <<choice_color_0>> : [λ] (order=0)
|
||||
SUBMITTED -[#FF6347,bold]-> PAID3 <<choice_color_0>> : (order=1)
|
||||
PAID -[#4682B4,bold]-> PAID1 <<choice_color_1>> : [λ] (order=0)
|
||||
PAID -[#4682B4,bold]-> PAID2 <<choice_color_1>> : [guard1] (order=1)
|
||||
PAID -[#4682B4,bold]-> HAPPEN <<choice_color_1>> : [λ] (order=2)
|
||||
PAID -[#4682B4,bold]-> PAID3 <<choice_color_1>> : (order=3)
|
||||
PAID2 -[#1E90FF,bold]-> CANCELED <<external>>
|
||||
PAID3 -[#1E90FF,bold]-> CANCELED <<external>>
|
||||
PAID1 -[#1E90FF,bold]-> PAID1 <<external>> <<e_OrderEvents_ABCD>> : ABCD / λ, action2
|
||||
hide <<e_OrderEvents_PAY>> stereotype
|
||||
hide <<e_OrderEvents_FULFILL>> stereotype
|
||||
hide <<e_OrderEvents_CANCEL>> stereotype
|
||||
hide <<e_OrderEvents_ABCD>> stereotype
|
||||
|
||||
CANCELED --> [*]
|
||||
FULFILLED --> [*]
|
||||
OrderStatesCANCELED --> [*]
|
||||
OrderStatesFULFILLED --> [*]
|
||||
@enduml
|
||||
|
||||
|
||||
Reference in New Issue
Block a user