Hi All,
Can anyone outline what the rules for using newly created groups within a workflow especially in respect to user membership?
We have a custom SQL user manager installed that allows specific users to create "secure groups" for the organisational units they're responsible for and allocate users to these as they wish. This should allow them to restrict tasks that they have access to by replacing the standard destination group with one of these newly created "secure groups" via the workflow's activity destinations.
The groups don't change very frequently but we'd like the workflow task allocation to react in real time if it is restricted to a custom group.
From testing we can see that the group creation (in the SQL schema) appears correct and that the task has been re-assigned to the new group but the task doesn't appear available to the group members via their worklist. I suspect it's because it's not been resolved and cached possibly???
Similar groups created earlier function correctly and are visible so I belive the custom user manager is functioning correctly, however, the lack of an up to date, single, clear, comprehensive or authoritive document surrounding building these on BlackPearl or K2 Five could mean that something small but important has been missed.
If I expire the identity table and restart the k2 Server Host everything is resolved immediately and the missing tasks become available so it looks like a newly created group needs to wait for caching before tasks are allocated to the memebrs correctly? Is this correct and if so is there any way to force the new group to be cached immediately via an API call or such?
I understand an alternative option is to use a smart object to resolve the users to allocate the task at the point of event execution but we were hoping to benifit from K2's group membership resolution functionality - i.e. when a user is added into a group, the system periodically resolves the mebership and any tasks allocated are made available to the new members - We see this as a big benefit that we'd ideally like to not loose.
Cheers in advance for any pointers...
Paul.