UserRoles is an association between UserRole and User in the system module and has nothing to do with constraining a task for a single user. You need to create an associaton between your Task entity and the Account entity and use this association in the xpath constraint that you configure on your Task entity.