chore(custom-query): align with docs for camunda 7.1

- align code with snippets from docs
- update camunda engine to 7.1

related to #CAM-2300 and #CAM-448