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

RuleEngine does not resolve Boolean expressions #824

Closed
rsoika opened this issue Apr 27, 2023 · 0 comments
Closed

RuleEngine does not resolve Boolean expressions #824

rsoika opened this issue Apr 27, 2023 · 0 comments
Labels
bug Jakarta EE 10 Jakarta EE 10 migration
Milestone

Comments

@rsoika
Copy link
Member

rsoika commented Apr 27, 2023

Following szenario is not detected as a deprecated script by the new Rule Engine

		ItemCollection workitem = new ItemCollection();
		workitem.replaceItemValue("space.team", "Anna");
		workitem.appendItemValue("space.team", "Rico");

		// access single value
		String script = "workitem['space.team'] && workitem['space.team'][0]!=\"\"";

		// run plugin
		boolean result = ruleEngine.evaluateBooleanExpression(script, workitem);
                // expected true!
@rsoika rsoika added bug Jakarta EE 10 Jakarta EE 10 migration labels Apr 27, 2023
@rsoika rsoika added this to the 6.0.3 milestone Apr 27, 2023
rsoika added a commit that referenced this issue Apr 27, 2023
@rsoika rsoika closed this as completed Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Jakarta EE 10 Jakarta EE 10 migration
Projects
None yet
Development

No branches or pull requests

1 participant