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

Using Event as start state and toStateData causes stack overflow #3541

Closed
fjtirado opened this issue May 31, 2024 · 0 comments · Fixed by #3542
Closed

Using Event as start state and toStateData causes stack overflow #3541

fjtirado opened this issue May 31, 2024 · 0 comments · Fixed by #3542
Assignees

Comments

@fjtirado
Copy link
Contributor

Describe the bug

As described in title, using this workflow definition causes a statck overflow because internall workflowdata is recursiverly being assigned to itself as part of the filter

{
"id": "GreetCustomersWorkflow",
"name": "Greet Customers when they arrive",
"version": "1.0",
"specVersion": "0.8",
"start": "WaitForCustomerToArrive",
"states":[
{
"name": "WaitForCustomerToArrive",
"type": "event",
"onEvents": [{
"eventRefs": ["CustomerArrivesEvent"],
"eventDataFilter": {
"data": "${ .customer }",
"toStateData": "${ .customerInfo }"
},
"actions":[
{
"functionRef": {
"refName": "greetingFunction",
"arguments": {
"message": "${ .customerInfo.name } "
}
}
}
]
}],
"end": true
}
],
"events": [{
"name": "CustomerArrivesEvent",
"type": "customer-arrival-type",
"source": "customer-arrival-event-source"
}],
"functions": [{
"name": "greetingFunction",
 "type": "custom",
  "operation": "sysout"
}]
}

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🎯 Done
Development

Successfully merging a pull request may close this issue.

1 participant