JBoss Community

Re: How to remove variable from process

created by Tihomir Surdilovic in jBPM - View the full discussion

Setting it to null is fine. Your process variable could be used in many other places in the process, for example data input/output associations, expressions etc. Removing it would mean a possibly cascating effect which could cause runtime issues. Could add a convenience method that set it to null as you are doing now but I would not call it "removeVariable".

 

Hope this helps.

Reply to this message by going to Community

Start a new discussion in jBPM at Community