Skip to content

String variable value serialization is inconsistent #88

@barinali

Description

@barinali

Describe the Bug

Cf.
bpmn-io/variable-outline#24 (review)
bpmn-io/variable-outline#24 (comment)

The diagram to observe this issue

String variables seems resolved in an inconsistent way. While a FEEL expressions output mapping variable such as ="No receipt attached" is resolved as below

{
  "name": "rejectionReason",
  "provider": [
    null
  ],
  "type": "String",
  "info": "No Receipt attached",
  "entries": [ ],
  "detail": "String"
}

exampleOutputJson's string property is resolved as below.

{
    "name": "rejectionReason",
    "type": "String",
    "info": "\"someString\"",
    "detail": "String"
}

Steps to Reproduce

  1. Open this diagram
  2. Focus on "Review report - manager"
  3. Inspect rejectionReason variable in both root and local scopes
  4. While local variable value has the quotations serialized, the root scope variable does not have them serialized

Expected Behavior

Consistency expected. It's either we need to serialize quotations for both or none.

Environment

  • Library version: 2.0.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingin progressCurrently worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions