I have a situation in a CQRS project where I have to log a user's request for information (query) then optionally start a workflow based on the response from the data store. The user is making a request for information which requires immediate feedback. At the same time, the system optionally starts a workflow to analyse the request. How do I implement this in CQRS since the request is neither a 'pure' query nor a 'pure' command?
Edit: To add some more context to this: The application is like a search application, where the user types in a query and the application returns with a result. But the application also logs the query and could start a workflow depending on the response from the server. The application also "remembers" the user's last few queries and uses it to give context to the new query.
Additionally, the query response may not be synchronous. A background worker may be responsible for delivering the result to the client.