-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[DROOLS-5964] Implement PMML-Trusty/Scesim backend integration #3344
Conversation
…d version of scesim-dmn/scesim-rule
…d full roundtrip test
Hi @gitgabrio thank you for your PR. |
Thanks @yesamer ! |
@danielezonca @yesamer |
Kudos, SonarCloud Quality Gate passed! |
# Conflicts: # drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/exceptions/ScenarioAssumptionViolatedException.java
Kudos, SonarCloud Quality Gate passed! |
} | ||
|
||
@XStreamAsAttribute() | ||
private String version = "1.8"; | ||
private String version = "1.9"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yesamer
Do you think this is a problem for client side marshaller or in general do you expect any impact on Kogito/BC side?
public static final String PMML_RESULT = "pmmlResult"; | ||
public static final String PMML_MODEL = "pmmlModel"; | ||
|
||
private static final String SEPARATOR = FileSystems.getDefault().getSeparator(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is better to normalise the path to use /
instead of handling platform specific separator: with this code I expect that if the scesim file is created on Linux and executed then on a Windows machine it will fail
KieContainer kieContainer = getKieContainer(); | ||
ScenarioRunnerDTO scenarioRunnerDTO = getScenarioRunnerDTO(); | ||
PMMLScenarioRunner runner = new PMMLScenarioRunner(kieContainer, scenarioRunnerDTO); | ||
runner.run(getRunNotifier()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about adding an assertion on the result also when it succeed?
Suspended - waiting for better indications |
@danielezonca @yesamer @jiripetrlik
See https://issues.redhat.com/browse/DROOLS-5964
Please let me know if
RuntNotifier
RunListener
usage insidePMMLRunnerTest
could be improved.Needed by kiegroup/drools-wb#1458