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

Duplicated information in the variables object #1989

Closed
caponetto opened this issue Feb 16, 2024 · 0 comments · Fixed by #1991
Closed

Duplicated information in the variables object #1989

caponetto opened this issue Feb 16, 2024 · 0 comments · Fixed by #1991
Assignees

Comments

@caponetto
Copy link

caponetto commented Feb 16, 2024

Describe the bug

Sometimes when variables are fetched from the Data Index, there is duplicated information in the response.

Expected behavior

I'd expect simply:

"variables": {
  "workflowdata": {
    "myKey": "myValue",
    "mantra": "Serverless Workflow is awesome!",
    "greeting": "Hello World"
  }
}

Actual behavior

If you fetch the variables, you'll get:

"variables": {
  "workflowdata": {
    "myKey": "myValue",
    "mantra": "Serverless Workflow is awesome!",
    "greeting": "Hello World"
  },
  "workflowdata.mantra": "Serverless Workflow is awesome!",
  "workflowdata.greeting": "Hello World"
}

See that mantra and greeting are duplicated.

How to Reproduce?

Take the Hello World workflow as an example and execute it with additional inputs, for instance:

{
    "myKey": "myValue"
}

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
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants