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

bug in gateway #1

Open
gelezayka opened this issue Feb 6, 2025 · 0 comments
Open

bug in gateway #1

gelezayka opened this issue Feb 6, 2025 · 0 comments

Comments

@gelezayka
Copy link

gelezayka commented Feb 6, 2025

test.bpmn.zip

I attach a bpmn file, when I trace it I get an error:
panic: runtime error: slice bounds out of range [3:1]

Fixed it like this:

--- gateway.go.orig	2025-02-06 13:37:10.055095097 +0300
+++ gateway.go	2025-02-06 13:36:56.663016493 +0300
@@ -27,7 +27,7 @@
 		rangeEnd := i + 1
 
 		// If this is a last channel awaiting action
-		if rangeEnd == len(awaitingActions) {
+		if rangeEnd == len(awaitingActions) && len(awaitingActions) < len(sequenceFlows)  {
 			// give it the remainder of sequence flows
 			rangeEnd = len(sequenceFlows)
 		}
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

No branches or pull requests

1 participant