Immediate assignment
Immediate assignment methods assign an object directly to the specified user or group.
assignUserAndDefaultGroup
boolean assignUserAndDefaultGroup(user)
This method assigns the assignable entity to the specified user, selecting a default group. The default group is generally the first group in the set of groups to which the user belongs. In general, use this method if a user only belongs to a single group, or if the assigned group really does not matter.
It is possible that the assigned group can affect visibility and permissions. Therefore, Guidewire recommends that use this method advisedly. For example, you might want to use this method only under the following circumstances:
- The users belong to only a single group.
- The assigned group has no security implications.
The following example assigns an Activity to the current user and does not need to
specify a group.
Activity.CurrentAssignment.AssignUserAndDefaultGroup(User.util.CurrentUser)
