Book a Demo

Author Topic: Cryptic BPMN Simulation Error Message  (Read 3605 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Cryptic BPMN Simulation Error Message
« on: October 18, 2022, 11:16:38 pm »
One of our BPMN simulations is returning the following error Message:

[158968347]      SIMULATION ERROR: invalid assignment left-hand side Expression: $RETURN$_of_2D&A_Report_Access_Management=sim['2D&A Report Access Management'].return;
It occurs as the simulation exits the lower-level business process "2D&A Report Access Management"

Does anyone know what it is trying to tell us?

TIA,
PAolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Cryptic BPMN Simulation Error Message
« Reply #1 on: October 19, 2022, 08:07:04 am »
That's a line of Javascript that is running in the background.

On the right hand side of the assignment is an example of safely handling any element name. On the left side is an example of not safely handling any element name.

The problem is apparently that the programmer replaced specific characters to try to get a valid Javascript identifier instead of replacing everything outside of known good values. (Or not using the original name for that variable at all)

The only thing you can do about it is remove the '&' from your element name.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Cryptic BPMN Simulation Error Message
« Reply #2 on: October 19, 2022, 08:33:08 am »
The only thing you can do about it is remove the '&' from your element name.
Or sending a bug report in order to get EA handle it the right way.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Cryptic BPMN Simulation Error Message
« Reply #3 on: October 19, 2022, 12:02:51 pm »
That's a line of Javascript that is running in the background.

On the right-hand side of the assignment is an example of safely handling any element name. On the left side is an example of not safely handling any element name.

The problem is apparently that the programmer replaced specific characters to try to get a valid Javascript identifier instead of replacing everything outside of known good values. (Or not using the original name for that variable at all)

The only thing you can do about it is to remove the '&' from your element name.
Thanks, Eve,
that does remove the error message!
I have reported a defect, as q suggests.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Cryptic BPMN Simulation Error Message
« Reply #4 on: October 19, 2022, 03:11:26 pm »
Thanks, Eve,
that does remove the error message!
I have reported a defect, as q suggests.
That's good.

For the record my focus with that reply was what you can do to get it working today.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Cryptic BPMN Simulation Error Message
« Reply #5 on: October 19, 2022, 04:13:28 pm »
Thanks, Eve,
that does remove the error message!
I have reported a defect, as q suggests.
That's good.

For the record, my focus with that reply was what you can do to get it working today.
Understood, earlier, but it's still a defect. ;)


Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!