[HapProcessStandard] Add an argument to AcquireFunc to pass command buffer

And enable to pass query parameters to fetch history.