wso2 / integration-studio

WSO2 Integration Studio is a development environment used to design integration scenarios and develop them.
Apache License 2.0
65 stars 61 forks source link

Invalid character ` is added automatically for ' in ei-tooling for BPMN projects #506

Closed arunans23 closed 1 week ago

arunans23 commented 5 years ago

Description:

In the latest EI tooling, for a BPMN project, when adding a condition to an arrow, ` is added instead of '.

For eg : ${vacationApproved == 'false'} automatically changes to ${vacationApproved == `false`}

This causes an error when running the task in the bpmn explorer.

ERROR {org.wso2.carbon.bpmn.rest.common.provider.ExceptionMapper.BPMNExceptionHandler} -  Unknown Exception occurred
org.activiti.engine.impl.juel.TreeBuilderException: Error parsing '${vacationApproved == ‘true’}': lexical error at position 22, encountered invalid character '‘', expected expression token

A workaround would be to remove the quotes. ${vacationApproved == false}. It would still work.

To resolve the issue, either we should fix at the tooling side, or change the documentation for BPMN tutorials.

Suggested Labels:

Suggested Assignees:

Affected Product Version: EI-tooling 6.5.0

OS, DB, other environment details and versions:

Steps to reproduce:

  1. Create a BPMN project in ei-tooling.
  2. Create a BPMN diagram inside the project.
  3. In the diagram, create some events and connect with arrows.
  4. Click the arrow; inside the main config, give a condition. eg : ${vacationApproved == 'false'}
  5. ' will change to ` automatically.
Screen Shot 2019-04-30 at 10 55 12 AM

Related Issues:

arunans23 commented 5 years ago

Please note that this seems to be working in Ubuntu environment and not in MacOS environment.