Hi Huisheng
I tried the method you mentioned in the ExecutionImpl but I didn't know how to commit the Execution
My Test is :
processInstance = executionService.startProcessInstanceByKey("Normal");
((ExecutionImpl)processInstance).createVariable("test", "valuetest","string",true);