Allocates the todo to the person, event if it is allocated to another person.
Parameters:
Throws:
Returns the set of <code>Persons who can currently see the todo. The function takes the possible effect of delegation, rejection and substitution into account.
Parameters:
Throws:
Returns the set of the original performers of the todo as defined by the corresponding task.
Parameters:
Throws:
Returns the Person who submitted the todo. The todo must be in the "Accomplished" state; Otherwise, it returns null
.
Parameters:
Throws:
Returns the set of active to-dos assigned to the person and not allocated by other persons.
Parameters:
Throws:
Returns the set of active to-dos assigned to the person.
Parameters:
Throws:
Changes the set of performers of the todo. Possible delegations and allocation of the todo are removed. If the todo is accomplished, the function has no effect.
Parameters:
Throws:
Rejects the todo on behalf of the persons.
rejectTodo( getCurrentTodo(), { getPerson("admin") }, "I am admin and will not deal with this." ) }
Parameters:
Throws:
Removes any saved states of the todo.
Parameters:
Throws:
Unallocates the todo if it is allocated.
Parameters:
Throws:
Adds the person to the role.
Parameters:
Throws:
Returns a set of direct children of an organization role or unit referred to by the roleUnit parameter. In the case of a parametric RoleUnit the values of children's parameters are derived from the specified roleUnit's parameters; i.e., the value of a particular child's parameter is identical with the value of the parent's parameter of the same name.
Parameters:
Throws:
Returns a set of email addresses of the performers. If a performer is of type Person its email address is added to the result. If a performer is of type RoleUnit email addresses of all persons in that role or organization unit are added to the result.
Parameters:
Throws:
Returns set of email addresses of all persons in the specified roles or organisation units.
Parameters:
Returns the roleUnit label.
Parameters:
Throws:
Returns a person of the specified name.
Parameters:
Throws:
Returns the full name of the specified person.
Parameters:
Throws:
Returns a profile picture of person.
Parameters:
Throws:
Returns the additional properties of the specified person.
Parameters:
Throws:
Returns a set of organization roles from the current model directly assigned to the specified person.
Parameters:
Throws:
Returns a person of the specified id.
Parameters:
Throws:
Returns an organization role or an organization unit specified by their name defined in the given module.
Parameters:
Throws:
Returns an organization role or an organization unit specified by their name and parameters defined in the given module.
Parameters:
Throws:
Returns true, if the specified person belongs to the given roleUnit in the current organization model. A person "belongs" to a given organization role or unit if it belongs to it directly or belongs to any of its descendants (evaluated recursively).
Parameters:
Throws:
Returns true, if the given person plays strictly the specified role, but none of its sub-roles. Therefore, this is a non-recursive version of the isPersonIn() function applied to organization roles.
Parameters:
Throws:
Returns a set of all persons that play the given role, but none of its sub-roles. Therefore, this is a non-recursive version of the personsWith() function applied to organization roles.
Parameters:
Throws:
Returns a set of all persons that belong to the given roleUnit in the current organization model. A person "belongs" to a given organization role or unit if it belongs to it directly or belongs to any of its descendants (evaluated recursively).
Parameters:
Throws:
Remove the person from the role.
Parameters:
Throws:
Sets or changes a profile picture for the person. If the picture is null, the person has no profile picture.
Parameters:
Throws:
Deletes the saved documents.
Parameters:
Throws:
Sends an e-mail. Deprecated: use function sendEmail with extended parameters.
Parameters:
Throws:
Sends an e-mail. Deprecated: use function sendEmail with extended parameters.
Parameters:
Throws:
Sends an e-mail.
Parameters:
Throws: