[jboss-cvs] jboss-seam/src/main/org/jboss/seam/drools ...
Shane Bryzak
Shane_Bryzak at symantec.com
Wed Dec 20 21:38:26 EST 2006
User: sbryzak2
Date: 06/12/20 21:38:26
Modified: src/main/org/jboss/seam/drools DroolsActionHandler.java
DroolsAssignmentHandler.java
DroolsDecisionHandler.java
ManagedWorkingMemory.java
Log:
fixed compiler warnings
Revision Changes Path
1.4 +26 -30 jboss-seam/src/main/org/jboss/seam/drools/DroolsActionHandler.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: DroolsActionHandler.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/drools/DroolsActionHandler.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- DroolsActionHandler.java 15 Jun 2006 08:03:53 -0000 1.3
+++ DroolsActionHandler.java 21 Dec 2006 02:38:26 -0000 1.4
@@ -1,10 +1,7 @@
package org.jboss.seam.drools;
-
import java.util.List;
-
import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;
-
/**
* A jBPM ActionHandler that delegates to a Drools WorkingMemory
* held in a Seam context variable.
@@ -15,10 +12,9 @@
*/
public class DroolsActionHandler extends DroolsHandler implements ActionHandler
{
-
+ private static final long serialVersionUID = 7752070876220597913L;
public List<String> assertObjects;
public String workingMemoryName;
-
/**
* The FireRulesActionHandler gets variables from the Instance, and asserts
* them into the Rules Engine and invokes the rules.
1.4 +26 -31 jboss-seam/src/main/org/jboss/seam/drools/DroolsAssignmentHandler.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: DroolsAssignmentHandler.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/drools/DroolsAssignmentHandler.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- DroolsAssignmentHandler.java 15 Jun 2006 08:03:53 -0000 1.3
+++ DroolsAssignmentHandler.java 21 Dec 2006 02:38:26 -0000 1.4
@@ -1,12 +1,9 @@
package org.jboss.seam.drools;
-
import java.util.List;
-
import org.drools.WorkingMemory;
import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.taskmgmt.def.AssignmentHandler;
import org.jbpm.taskmgmt.exe.Assignable;
-
/**
* A jBPM AssignmentHandler that delegates to a Drools WorkingMemory
* held in a Seam context variable.
@@ -17,10 +14,9 @@
*/
public class DroolsAssignmentHandler extends DroolsHandler implements AssignmentHandler
{
-
+ private static final long serialVersionUID = -7114640047036854546L;
public String workingMemoryName;
public List<String> assertObjects;
-
public void assign(Assignable assignable, ExecutionContext executionContext)
throws Exception
{
@@ -28,5 +24,4 @@
workingMemory.setGlobal( "assignable", assignable );
workingMemory.fireAllRules();
}
-
}
\ No newline at end of file
1.4 +30 -34 jboss-seam/src/main/org/jboss/seam/drools/DroolsDecisionHandler.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: DroolsDecisionHandler.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/drools/DroolsDecisionHandler.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- DroolsDecisionHandler.java 15 Jun 2006 08:03:53 -0000 1.3
+++ DroolsDecisionHandler.java 21 Dec 2006 02:38:26 -0000 1.4
@@ -1,11 +1,8 @@
package org.jboss.seam.drools;
-
import java.util.List;
-
import org.drools.WorkingMemory;
import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.graph.node.DecisionHandler;
-
/**
* A jBPM DecisionHandler that delegates to a Drools WorkingMemory
* held in a Seam context variable. The decision outcome is returned
@@ -16,10 +13,9 @@
*/
public class DroolsDecisionHandler extends DroolsHandler implements DecisionHandler
{
-
+ private static final long serialVersionUID = -8900810376838166513L;
public List<String> assertObjects;
public String workingMemoryName;
-
/**
* The FireRulesActionHandler gets variables from the Instance, and asserts
* them into the Rules Engine and invokes the rules.
1.8 +99 -107 jboss-seam/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ManagedWorkingMemory.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- ManagedWorkingMemory.java 14 Oct 2006 18:30:27 -0000 1.7
+++ ManagedWorkingMemory.java 21 Dec 2006 02:38:26 -0000 1.8
@@ -1,9 +1,6 @@
package org.jboss.seam.drools;
-
import static org.jboss.seam.InterceptionType.NEVER;
-
import java.io.Serializable;
-
import org.drools.RuleBase;
import org.drools.WorkingMemory;
import org.jboss.seam.Component;
@@ -14,7 +11,6 @@
import org.jboss.seam.annotations.Unwrap;
import org.jboss.seam.core.Mutable;
import org.jboss.seam.core.Expressions.ValueBinding;
-
/**
* A conversation-scoped Drools WorkingMemory for a named RuleBase
*
@@ -25,16 +21,15 @@
@Intercept(NEVER)
public class ManagedWorkingMemory implements Mutable, Serializable
{
+ private static final long serialVersionUID = -1746942080571374743L;
private String ruleBaseName;
private WorkingMemory workingMemory;
private ValueBinding<RuleBase> ruleBase;
-
public boolean clearDirty()
{
return true;
}
-
/**
* The name of a Seam context variable holding an
* instance of org.drools.RuleBase
@@ -93,15 +88,12 @@
{
workingMemory.dispose();
}
-
public ValueBinding<RuleBase> getRuleBase()
{
return ruleBase;
}
-
public void setRuleBase(ValueBinding<RuleBase> ruleBase)
{
this.ruleBase = ruleBase;
}
-
}
More information about the jboss-cvs-commits
mailing list