Another possibility is to add a findGroupTasksByGroupName method to the IdentitySession interface. Than it's possible to create a group per functional context. In the loan part of the gui you display the result of findGroupTasksByGroupName("LOAN_MANAGEMENT") and in the customer registration module you display the result of findGroupTasksByGroupName("CUSTOMER_MANAGEMENT")
The latter sounds more logical, please file a jira issue for it and even better, provide an example implementation and testcase so we can easily add it
I agree, the second option sounds more logical to me.
Doesn't the TaskQuery.candidate() or TaskQuery.assignee() helps you out there?
If you feel like something is missing there, you can file a Jira as Ronald mentions. If it's really urgent you can always use a plain Hibernate query (altough I'd rather see it on the right API interface ;-)