Did you try the following?
((WorkflowProcessInstance)processinstance).getVariable(variablename");
See the discussion
http://community.jboss.org/thread/166413?tstart=180
Reply to this message by going to Community
Start a new discussion in jBPM at Community