Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visualiser: Create custom branching name to avoid collision #40

Merged

Conversation

andrewwormald
Copy link
Collaborator

@andrewwormald andrewwormald commented Oct 7, 2024

Currently for any branching that takes place the branching name in the md file is if_state which means that if there is more than one branching in the workflow the visualiser will incorrectly connect the branching due to referencing if_state. Instead using the from value and adding a suffix of _branching allows the output to be 1_branching which indicates from node 1 branching to node 2 and is represented like such:

    state 1_branching <<choice>>
    1 --> 1_branching
    1_branching --> 2
    1_branching --> 3 
stateDiagram-v2
	direction LR
	
	1: Start
	2: Middle
	3: End
	
    state 1_branching <<choice>>
    1 --> 1_branching
    1_branching --> 2
    1_branching --> 3 

Loading

Copy link

sonarcloud bot commented Oct 7, 2024

@andrewwormald andrewwormald merged commit ec94dac into main Oct 7, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants