public void updateProcessInstanceBusinessKey(String processInstanceId, String businessKey) {
commandExecutor.execute(new UpdateBusinessKeyCmd(processInstanceId, businessKey));
}
public void setProcessInstanceVariable(String processInstanceId, String variableName, Object value) {
SaveVariablesCommand saveVariablesCommand = new SaveVariablesCommand();
saveVariablesCommand.setProcessInstanceId(processInstanceId);
Map<String, Object> map = new HashMap<String, Object>();
map.put(variableName, value);
saveVariablesCommand.setVariables(map);
commandExecutor.execute(new SaveVariablesCmd(saveVariablesCommand));
}