activiti设置流程变量

public static void mian(String args[]){

ProcessEngine processEngine  = ProcessEngine.getDefaultProcessEngine();

RuntimeService runtimeService = processEngine.getRuntimeService();

runtimeServie.setVariable(executionId,variablename,value);  // 设置一个流程变量

Map variables = new HashMap<String,Object>();

runtimeServie.setVariable(executionId,variables);  // 设置多个流程变量

}

 

posted @ 2017-06-11 21:49  N神3  阅读(1108)  评论(0编辑  收藏  举报