[jboss-user] [JBoss jBPM] - Re: required variables

dleerob do-not-reply at jboss.com
Thu Sep 13 14:06:42 EDT 2007

anonymous wrote : btw, hasVariableLocally should not contain the variable if it has no 'read' attribute, see the initializeVariables in the TaskController or the snippet in my post above. Strange....

I don't think it's working like it should then. I tried the following:
<variable name='IsReplacement' access='write,required'></variable>

And retrieved all local variables, and printed them out:
Map variables = startTaskInstance.getVariablesLocally();
  | 		if (variables != null) {
  | 			for (Iterator it = variables.keySet().iterator();it.hasNext();) {
  | 				String variableName = (String)it.next();
  | 				String variableValue = (String)variables.get(variableName);
  | 				System.out.println(variableName+": "+variableValue);
  | 			}
  | 		}
Is still found/printed the "IsReplacement" variable with a null value.

IsReplacement: null

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084125#4084125

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084125

More information about the jboss-user mailing list