update processInstance