Class InboxTaskUtil


  • public final class InboxTaskUtil
    extends Object
    Helper methods for obtaining all tasks a user may initiate in the inbox. Also checks the permissions.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getInboxTasks

        public static List<WorkflowTask> getInboxTasks​(IEntityContext ec,
                                                       Vorgang formRecord,
                                                       Benutzer user)
        Finds all tasks that are allowed to be invoked by the given user in the inbox.
        Parameters:
        ec - Entity context for accessing the database..
        formRecord - Form record for which to find the tasks.
        user - User for checking permissions.
        Returns:
        A list of all invokable tasks for the given form record, restricted to the tasks permitted to the given user. The WorkflowTask.getTrigger() field will be initialized.
      • isTaskInvokableInInbox

        public static boolean isTaskInvokableInInbox​(IEntityContext ec,
                                                     WorkflowTask task,
                                                     Vorgang formRecord,
                                                     Benutzer user)
        Checks whether the given task may be initiated by the given user in the inbox.
        Parameters:
        ec - Entity context for accessing the database..
        task - A workflow task to check.
        formRecord - Form record for which to find the tasks.
        user - User for checking permissions.
        Returns:
        true if the given user is permitted to initiated the given task, or false otherwise.