cancel
Showing results for 
Search instead for 
Did you mean: 

SubGroups

ale_carraro
Champ in-the-making
Champ in-the-making
I'm using pooled workflows, and I have several that behave more or less the same, (same logical groups) but the people defined in it are different.

Actually I've defined the groups (simplifying) :
GROUP_CORRECTORS_WF_A
GROUP_EDITORS_WF_A
GROUP_VALIDATORS_WF_A

GROUP_CORRECTORS_WF_B
GROUP_EDITORS_WF_B
GROUP_VALIDATORS_WF_B

GROUP_CORRECTORS_WF_C
GROUP_EDITORS_WF_C
GROUP_VALIDATORS_WF_C


However this is ugly and difficult to mantain. I'd like to use hierarchy to separate different Workflow implementation.
WF_A
WF_A/CORRECTORS
WF_A/EDITORS
WF_A/VALIDATORS

WF_B
WF_B/CORRECTORS

and so on

However, I'm not able to refer to those groups (I've built them easily in the UI) from the workflow.
I tried
GROUP_WF_A/GROUP_CORRECTORS
GROUP_WF_A/CORRECTORS
#{people.getGroup('GROUP_WF_A').getGroup('GROUP_CORRECTORS')}

but nothing seems ok

Has anybody some ideas?

Thanks in advice

Alex
1 REPLY 1

mrogers
Star Contributor
Star Contributor
You are probably better off using the some sort of naming scheme similar to what you stated with to keep track of your groups.    The APIs don't access groups by hierarchy, the "authorityName" is what identifies each group.  

If you know the name of the group you want then its (on 3.2)

groups.getGroup("CORRECTORS_WF_A");

If you don't know the name of the groups and are walking the tree then its methods like
groups.getGroup("CORRECTORS_WF_A").getSubGroups() etc

You can have as many sub groups as you want so, for example, you could put a group called "POOLED_CORRECTORS" into CORRECTORS_WF_A and CORRECTORS_WF_B.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.