[jboss-svn-commits] JBL Code SVN: r24389 - labs/jbossrules/trunk/drools-api/src/main/java/org/drools/runtime/process.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Dec 15 19:05:10 EST 2008
Author: KrisVerlaenen
Date: 2008-12-15 19:05:10 -0500 (Mon, 15 Dec 2008)
New Revision: 24389
Added:
labs/jbossrules/trunk/drools-api/src/main/java/org/drools/runtime/process/ProcessContext.java
Log:
JBRULES-1895: Rule constraints can use processInstance variable to refer to current process instance
- binding process instance to current process instance when evaluating constraint
JBRULES-1896: Support kcontext variable in rules and processes
- adding support in core and compiler for kcontext variable
Added: labs/jbossrules/trunk/drools-api/src/main/java/org/drools/runtime/process/ProcessContext.java
===================================================================
--- labs/jbossrules/trunk/drools-api/src/main/java/org/drools/runtime/process/ProcessContext.java (rev 0)
+++ labs/jbossrules/trunk/drools-api/src/main/java/org/drools/runtime/process/ProcessContext.java 2008-12-16 00:05:10 UTC (rev 24389)
@@ -0,0 +1,17 @@
+package org.drools.runtime.process;
+
+import org.drools.runtime.KnowledgeRuntime;
+
+public interface ProcessContext {
+
+ ProcessInstance getProcessInstance();
+
+ NodeInstance getNodeInstance();
+
+ KnowledgeRuntime getKnowledgeRuntime();
+
+ Object getVariable(String variableName);
+
+ void setVariable(String variableName, Object value);
+
+}
More information about the jboss-svn-commits
mailing list