首页 > 代码库 > activiti设置流程变量

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);  // 设置多个流程变量

}

 

activiti设置流程变量