Olivier is 100% right.... I'm afraid....
in the Taskcontroller code:
initializing variables:
| if (variableAccess.isReadable()) {
| String variableName = variableAccess.getVariableName();
| Object value = contextInstance.getVariable(variableName, token);
| log.debug("creating task instance variable '"+mappedName+"'
from process variable '"+variableName+"', value '"+value+"'");
| taskInstance.setVariableLocally(mappedName, value);
| } else {
|
submitting:
if ( (variableAccess.isRequired())
| && (! taskInstance.hasVariableLocally(mappedName))
| ) {
| ..... some error stuff
| }
|
So Olivier is correct, but I personally would be in favour of changing the
latter to
if ( (variableAccess.isRequired())
| && (! taskInstance.hasVariableLocally(mappedName)
| && (taskInstance.getVariable(variableAccess.getMappedName())
!= null) )
| ) {
| ..... some error stuff
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084116#4084116
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084116
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user