JBoss Community

JBPM Exception when running workflow

reply from Maciej Swiderski in jBPM - View the full discussion

Hi Steve,

 

good news, I think I got it. First of all (happily) this is not jBPM issue ;)

 

You just forgot to clean up process variables after first execution that's why it worked with only one file. I modified a bit FileChecked decision handler to remove one variable prior to returning the result (line in bold):

 

      } else {
            result = "no";
            cleanUp(oe);
        }
        oe.removeVariable(ActivityShareInfo.JoinCompleteIndicator.name);
        return result;

After that it works like a charm.

 

Seems like you developed your custom foreach functionality?! If so you should look into foreach activity that is part of 4.4 version. Just search this forum for details or grab trunk version from svn to get an overview... you can always post questions here as well.

 

HTH

Maciej

Reply to this message by going to Community

Start a new discussion in jBPM at Community