[jboss-user] [JBoss jBPM] - Re: required variables
kukeltje
do-not-reply at jboss.com
Fri Sep 14 08:42:36 EDT 2007
Could you try this patch for the validation?? I'm working on a patch for the ending as well. BUT... lots of tests have to be created before this is could be submitted...
### Eclipse Workspace Patch 1.0
| #P jbpm.3-clean
| Index: jpdl/jar/src/main/java/org/jbpm/taskmgmt/def/TaskController.java
| ===================================================================
| RCS file: /cvsroot/jbpm/jbpm.3/jpdl/jar/src/main/java/org/jbpm/taskmgmt/def/TaskController.java,v
| retrieving revision 1.2
| diff -u -r1.2 TaskController.java
| --- jpdl/jar/src/main/java/org/jbpm/taskmgmt/def/TaskController.java 11 Jun 2007 10:39:29 -0000 1.2
| +++ jpdl/jar/src/main/java/org/jbpm/taskmgmt/def/TaskController.java 14 Sep 2007 11:55:00 -0000
| @@ -136,7 +136,9 @@
| String mappedName = variableAccess.getMappedName();
| // first check if the required variableInstances are present
| if ( (variableAccess.isRequired())
| - && (! taskInstance.hasVariableLocally(mappedName))
| + && (
| + (! taskInstance.hasVariableLocally(mappedName))
| + || ( taskInstance.getVariable(mappedName) == null))
| ) {
| if (missingTaskVariables==null) {
| missingTaskVariables = mappedName;
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084424#4084424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084424
More information about the jboss-user
mailing list