Skip to content

Commit 7922356

Browse files
committed
Update on to label
1 parent 1c90b73 commit 7922356

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

client/src/types/fsm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export type StateMachine = {
22
className: string;
33
initial: string;
44
states: string[];
5-
transitions: { from: string; to: string; on: string }[];
5+
transitions: { from: string; to: string; label: string }[];
66
};

client/src/webview/fsm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function createMermaidDiagram(sm: StateMachine): string {
1919

2020
// transitions
2121
sm.transitions.forEach(transition => {
22-
lines.push(` ${transition.from} --> ${transition.to} : ${transition.on}`);
22+
lines.push(` ${transition.from} --> ${transition.to} : ${transition.label}`);
2323
});
2424

2525
return lines.join('\n');

server/src/main/java/fsm/StateMachineTransition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/**
44
* Represents a transition in a state machine
55
*/
6-
public record StateMachineTransition(String from, String to, String on) {}
6+
public record StateMachineTransition(String from, String to, String label) {}

0 commit comments

Comments
 (0)