change paremeter processInstanceId to activityInstanceId