Hi,
one way to achieve your goal is using the parent sdkConnection of your VM object and using the taskManager and eventManager.
For each one (Task and Event) create a FilterSpec (containing your VM) and trigger the createCollectorForTasks/createCollectorForEvents method.
The result will be a browsable/paginated collector where you can retrieve your tasks and events for your VM object.
Greetz