Interface IActivator
An activator is a user or a role that can start a task.
Read more about this activator in the designer guide at task switch process element.
- Since:
- 8.0.3
- API:
- This is a public API.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the activator is set and in case of a user is enabled.Get the display name of the task activator.get()booleanisMember(IUserToken userToken) Whether the activator is set and the given user token is a member of the activator.booleanisRole()Whether the activator is set and is a role.booleanWhether the activator is set and is the given role.booleanWhether the activator is set and is the System user.booleanisUser()Whether the activator is set and is a userbooleanWhether the activator is set and is the given user.name()Get the name of the task activator.voidset(ISecurityMember activator) Sets the task activatorEvaluates alluserswho can resume this task.userCandidatesPaged(int pageSize) Evaluates alluserswho can resume this task.
-
Method Details
-
get
ISecurityMember get()Gets the task activator's
useror arole.May return null if the activator was deleted since the creation of the task or was not defined at all (e.g.
expiry task activatoris optional)Note, that the method
name()may return a valid name even if the task activator was deleted.- Returns:
- user or role or null if activator was not defined or was deleted
- See Also:
- API:
- This public API is available in Java.
-
set
Sets the task activator -
name
String name()Get the name of the task activator. Maybe null if the task activator was not defined (e.g.expiry task activator). Returns a valid name even if the task activator was defined but was deleted in the meantime.- Returns:
- task activator name or null.
- API:
- This public API is available in Java.
-
displayName
String displayName()Get the display name of the task activator. Maybe null if the task activator was not defined (e.g.expiry task activator). Returns a valid name even if the task activator was defined but was deleted in the meantime.- Returns:
- task activator name or null.
- API:
- This public API is available in Java.
-
userCandidatesPaged
IPagedIterable<IUser> userCandidatesPaged()Evaluates all
userswho can resume this task. If the activator is arole, then allusersthat own thisrolewill be included in the list. In case someusersare absent, their substitutes will be included as well. However substitutes of substitutes are not included.This method uses a default, system defined page size (1000) which does not harm memory and provides still good performance.
- Returns:
- user candidates
- See Also:
- API:
- This public API is available in Java.
-
userCandidatesPaged
Evaluates alluserswho can resume this task. If the activator is arole, then allusersthat own thisrolewill be included in the list. In case someusersare absent, their substitutes will be included as well. However substitutes of substitutes are not included.- Parameters:
pageSize- the maximum number of users loaded at once into memory On paged UI tables the number of objects you display on a single page.- Returns:
- user candidates
- See Also:
- API:
- This public API is available in Java.
-
available
boolean available()Whether the activator is set and in case of a user is enabled.- Returns:
- true if its available otherwise false.
- Since:
- 9.1
- API:
- This public API is available in Java.
-
isUser
Whether the activator is set and is the given user.- Parameters:
user- the user to test- Returns:
- true if activator is the given user.
- Since:
- 9.1
- API:
- This public API is available in Java.
-
isUser
boolean isUser()Whether the activator is set and is a user- Returns:
- true if activator is a user
- API:
- This public API is available in Java.
-
isSystemUser
boolean isSystemUser()Whether the activator is set and is the System user.- Returns:
- true if activator is the system user.
- Since:
- 9.1
- API:
- This public API is available in Java.
-
isRole
Whether the activator is set and is the given role.- Parameters:
role- the role to test- Returns:
- true if activator is the system user.
- Since:
- 9.1
- API:
- This public API is available in Java.
-
isRole
boolean isRole()Whether the activator is set and is a role.- Returns:
- true if activator is a role.
- Since:
- 9.1
- API:
- This public API is available in Java.
-
isMember
Whether the activator is set and the given user token is a member of the activator.- Parameters:
userToken- the user token to test- Returns:
- true if the given user token is a member of the activator.
- Since:
- 9.1
- API:
- This public API is available in Java.
-