elsa-core icon indicating copy to clipboard operation
elsa-core copied to clipboard

[BUG]In Elsa 3.1.3 designer, the IF activity defines an expression whose condition evaluates to true or false. Why does the expression always result in false?

Open shxylgithub opened this issue 1 year ago • 1 comments

In Elsa 3.1.3 designer, the IF activity defines an expression whose condition evaluates to true or false. Why does the expression always result in false? if1 if2

shxylgithub avatar Jul 05 '24 02:07 shxylgithub

To address the issue of the IF activity always evaluating to false in Elsa 3.1.3 designer, we would need to look at the expression being used in the Condition attribute of the IF activity. There could be several reasons why the expression evaluates to false:

  1. The expression syntax might be incorrect.
  2. The variables or data used in the expression might not be set or passed correctly.
  3. There might be a bug in the Elsa 3.1.3 designer that is causing the incorrect evaluation.

To troubleshoot this issue, you should:

  • Verify that the expression syntax is correct and follows the expected format for the language being used (e.g., JavaScript).
  • Check that any variables or data referenced in the expression are being provided and have the correct values.
  • Look for any known issues or bugs reported in the Elsa GitHub repository or the community forums that might be related to this problem.

If you can provide the specific expression you are using in the Condition attribute, I can offer more targeted assistance. Otherwise, please review the expression and the data context to ensure they are correct.

If the problem persists, consider reaching out to the Elsa community or checking the GitHub issues for any similar reported problems.

This comment was generated by Glime.

glime-ai[bot] avatar Jul 05 '24 02:07 glime-ai[bot]

I think this may be a bug that has been fixed fairly recently. Can you try with the latest preview packages?

sfmskywalker avatar Jul 05 '24 17:07 sfmskywalker