Skip to content

Commit

Permalink
[incubator-kie-issues#1209] Minor fixes to verify scesim work also on…
Browse files Browse the repository at this point in the history
… kogito projects (#5954)

Co-authored-by: Gabriele-Cardosi <[email protected]>
  • Loading branch information
gitgabrio and Gabriele-Cardosi authored May 16, 2024
1 parent 6645110 commit 3d3a981
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public KieSession execute(Context context) {

KieSessionConfiguration kieSessionConfiguration = customizeSessionConfiguration.apply(sessionName, kieContainer);

KieSession ksession = kieContainer.newKieSession(kieSessionConfiguration);
KieSession ksession = kieContainer.newKieSession(sessionName, kieSessionConfiguration);

((RegistryContext) context).register(KieSession.class, ksession);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ private ScenarioSimulationXMLPersistence() {
xt = XStreamUtils.createNonTrustingXStream(new DomDriver());

xt.addPermission(new WildcardTypePermission( new String[] {
"org.drools.scenariosimulation.api.model.*"
"org.drools.scenariosimulation.api.model.*",
"org.drools.scenariosimulation.api.model.imports.*",
}));

xt.setMode(XStream.NO_REFERENCES);
Expand Down

0 comments on commit 3d3a981

Please sign in to comment.