From: Krzysztof B. <kb...@un...> - 2016-09-13 08:04:58
|
Hi Björn, W dniu 13.09.2016 o 09:46, Björn Hagemeier pisze: > Hi there, > > I ran into a problem using attributes statements in Unity 1.9.3. I would > like to use an attribute statement to copy an attribute from sub-groups. > Entity membership within sub-groups is mutually exclusive, the attribute > in question gets assigned automatically based on group membership. When > using two attribute statements to copy the attribute from the respective > sub-groups, the attribute value is updated on all entities within the > parent group. > > parent: dynamic attribute value from sub-groups assigned to all entities > |- servers: all entities assigned role server > |- users: all entities assigned role user > > The dynamic attribute values are taken from one group or the other, > depending on the order of the statements and the conflict resolution. > Only 'overwrite previous' and 'skip' really work here, but again, due to > the entities and hence the attributes being mutually exclusive within > the sub-groups, there should not be any conflict (to the best of my > knowledge). > > Am I doing anything wrong or is the value selection and assignment not > sufficiently restrictive? Well, I'm not sure if I can extract the problem that you get from your description. I understand that you have entities which are either in parent/servers or parent/users (never both), and want to copy the same attribute from a subgroup to have it also in the parent group. Is this correct? If yes - what misbehavior do you get? And please provide details of the attribute statement that you use to copy the attribute in question. Cheers, Krzysztof |