Skip to content

Commit

Permalink
[DROOLS-6141] executable-model test failure in test-compiler-integrat…
Browse files Browse the repository at this point in the history
…ion ParallelEvaluationTest (apache#4497)

- Implemented insertAsync in exec-model
  • Loading branch information
tkobayas authored Jun 28, 2022
1 parent 60d3802 commit 8c1ca89
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ public interface Drools extends DroolsEntryPoint {
Channel getChannel(String name);

void logicalInsert(Object object);

void insertAsync(Object object);
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ private Expression createAsKnowledgeHelperExpression() {
static {
implicitDroolsMethods.add("insert");
implicitDroolsMethods.add("insertLogical");
implicitDroolsMethods.add("insertAsync");
implicitDroolsMethods.add("delete");
implicitDroolsMethods.add("retract");
implicitDroolsMethods.add("update");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public void logicalInsert(Object object) {
knowledgeHelper.insertLogical( object );
}

@Override
public void insertAsync(Object object) {
((InternalWorkingMemoryActions)workingMemory).insertAsync(object);
}

@Override
public RuleImpl getRule() {
return knowledgeHelper.getRule();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public ParallelEvaluationTest(final KieBaseTestConfiguration kieBaseTestConfigur

@Parameterized.Parameters(name = "KieBase type={0}")
public static Collection<Object[]> getParameters() {
// TODO: EM failed with some tests. File JIRAs
return TestParametersUtil.getKieBaseCloudConfigurations(false);
return TestParametersUtil.getKieBaseCloudConfigurations(true);
}

@Test(timeout = 40000L)
Expand Down

0 comments on commit 8c1ca89

Please sign in to comment.