1. 程式人生 > >activiti設置流程變量

activiti設置流程變量

cut str ash hashmap def exec rgs set oid

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設置流程變量