auto assign the processId for the command which generated in the event handler.