Skip to content

Commit

Permalink
Fixing compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
etirelli committed Dec 1, 2012
1 parent ca6ca09 commit f6f2564
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import org.kie.io.ResourceFactory;
import org.drools.rule.Rule;
import org.kie.runtime.StatefulKnowledgeSession;
import org.kie.runtime.rule.Activation;
import org.kie.runtime.rule.AgendaFilter;
import org.kie.runtime.rule.Match;
import org.junit.Ignore;
import org.junit.Test;

Expand Down Expand Up @@ -150,7 +150,7 @@ public static class SalienceFilter implements AgendaFilter {

private Integer currentSalience = null;

public boolean accept(Activation activation) {
public boolean accept(Match activation) {
Rule rule = (Rule)activation.getRule();

if (currentSalience == null){
Expand Down Expand Up @@ -276,7 +276,7 @@ private Object newCancelFact(StatefulKnowledgeSession ksession, boolean cancel)
}

public static class CancelAgendaFilter implements AgendaFilter {
public boolean accept(Activation activation) {
public boolean accept(Match activation) {
return !"Cancel".equals(activation.getRule().getName());
}
}
Expand Down
5 changes: 2 additions & 3 deletions jbpm-flow/src/test/java/org/jbpm/process/TimerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@

package org.jbpm.process;

import java.util.concurrent.ExecutorService;

import junit.framework.Assert;

import org.drools.RuleBaseFactory;
import org.drools.StatefulSession;
import org.drools.common.AbstractRuleBase;
import org.drools.common.InternalWorkingMemory;
import org.drools.concurrent.CommandExecutor;
import org.drools.concurrent.DefaultExecutorService;
import org.drools.concurrent.ExecutorService;
import org.drools.reteoo.ReteooStatefulSession;
import org.drools.runtime.process.ProcessRuntimeFactory;
import org.jbpm.process.instance.InternalProcessRuntime;
Expand Down

0 comments on commit f6f2564

Please sign in to comment.