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
  • Loading branch information
Gabriele-Cardosi committed May 15, 2024
1 parent 1913397 commit ff79e4b
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 ff79e4b

Please sign in to comment.