How can I access process variables inside split nodes, in fact, in split contraints?

I accessed a process variable named "count" in an action node like that:

Integer c = (Integer) kcontext.getVariable("count");
kcontext.setVariable("count", ++c);

But, in a split constraint doesn't work. So, my doubts are:
- How is the way in split constraints?
- Is there a simpler way to access process variables in action node?


Renato Herebia