[jbpm-commits] JBoss JBPM SVN: r1792 - jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/model.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Jul 31 09:22:10 EDT 2008
Author: tom.baeyens at jboss.com
Date: 2008-07-31 09:22:09 -0400 (Thu, 31 Jul 2008)
New Revision: 1792
Modified:
jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/model/VariableDefinitionImpl.java
Log:
replaced execution lookup with new wirecontext: JBPM-1256
Modified: jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/model/VariableDefinitionImpl.java
===================================================================
--- jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/model/VariableDefinitionImpl.java 2008-07-31 12:14:48 UTC (rev 1791)
+++ jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/model/VariableDefinitionImpl.java 2008-07-31 13:22:09 UTC (rev 1792)
@@ -60,22 +60,7 @@
public Object getSourceValue(ExecutionImpl execution) {
if (sourceDescriptor!=null) {
- /* TODO add environment scoped lookup for source
- * WireContext should be replaced with context in
- * the Descriptor's construct method, i think.
- *
- */
- WireContext context = null;
-
- Environment environment = Environment.getCurrent();
- if (environment != null && environment instanceof DefaultEnvironment) {
- Context ctx = ((DefaultEnvironment) environment).getEnvironmentContext();
- if (ctx instanceof WireContext) {
- context = (WireContext) ctx;
- }
- }
-
- return sourceDescriptor.construct(context);
+ return sourceDescriptor.construct(new WireContext());
}
if (source!=null) {
return execution.getVariable(key);
More information about the jbpm-commits
mailing list