Package io.jmix.bpm.provider
Annotation Interface UserGroupListProvider
Indicates that an annotated class is a "userGroupListProvider".
Such classes are used to find an appropriate
UserGroup
s as possible candidates for userTask and should return a list of userGroups' codes.
Calculated userGroups' codes will be set as value of flowable:candidateGroups
attribute for userTask.
Annotated class can contain one or more methods with arbitrary number of parameters and List<String> return type:
List<String> getAccountancy() { return Collections.singletonList("accountancy"); } List<String> getUserGroupsByNamePrefix(String userGroupNamePrefix) { List<UserGroup> candidateUserGroups = ...; return candidateUserGroups.stream().map(UserGroup::getCode).collect(toList()); }Declared methods will be available in modeler with a possibility to pass into them actual parameters, include process variables.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionShort explanation of searching algorithm to find appropriateUserGroup
s.