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

Feature/improved script engine #215

Merged
merged 6 commits into from Sep 6, 2022
Merged

Conversation

essweine
Copy link
Contributor

@essweine essweine commented Sep 6, 2022

This cleans up the script engine, allowing the DMN-related work to happen in the DMN engine, with the work done by the script engine being evaluation and execution.

Expression evaluation and script execution now takes place separately from the interface with the workflow, in _evaluate and _execute methods. Additionally, scripts are started when the task becomes ready and moved into a waiting state until completed, to allow asynchronous engines to implemented more easily. These changes should make it a lot easier to implement custom script engines.

As a side note, I discovered that most of our FEEL tests were not actually using the FeelLIkeScriptEngine; I've corrected this.

@sonarcloud
Copy link

sonarcloud bot commented Sep 6, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

83.8% 83.8% Coverage
0.0% 0.0% Duplication

@danfunk danfunk merged commit 776b272 into main Sep 6, 2022
@danfunk danfunk deleted the feature/improved-script-engine branch September 21, 2022 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants