Class WorkflowTaskHandler

All Implemented Interfaces:
IAPIHandler, IGenericHandler, IWorkflowTaskHandler, Serializable

public class WorkflowTaskHandler extends GenericHandler implements IWorkflowTaskHandler
Handler implementation for reading and writing WorkflowTask entities.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • WorkflowTaskHandler

      public WorkflowTaskHandler()
  • Method Details

    • getInboxTasks

      public List<WorkflowTask> getInboxTasks(UserContext uc, Vorgang formRecord, IUser user)
      Description copied from interface: IWorkflowTaskHandler
      Finds all tasks that are allowed to be invoked by the given user in the inbox.
      Specified by:
      getInboxTasks in interface IWorkflowTaskHandler
      Parameters:
      uc - Current user context for database transactions.
      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 boolean isTaskInvokableInInbox(UserContext uc, WorkflowTask task, Vorgang formRecord, IUser user)
      Description copied from interface: IWorkflowTaskHandler
      Checks whether the given task may be initiated by the given user in the inbox.
      Specified by:
      isTaskInvokableInInbox in interface IWorkflowTaskHandler
      Parameters:
      uc - Current user context for database transactions.
      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.
    • getInboxTasks

      @Deprecated public List<WorkflowTask> getInboxTasks(UserContext uc, Vorgang formRecord, Benutzer user)
      Deprecated.
      Description copied from interface: IWorkflowTaskHandler
      Finds all tasks that are allowed to be invoked by the given user in the inbox.
      Specified by:
      getInboxTasks in interface IWorkflowTaskHandler
      Parameters:
      uc - Current user context for database transactions.
      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

      @Deprecated public boolean isTaskInvokableInInbox(UserContext uc, WorkflowTask task, Vorgang formRecord, Benutzer user)
      Deprecated.
      Description copied from interface: IWorkflowTaskHandler
      Checks whether the given task may be initiated by the given user in the inbox.
      Specified by:
      isTaskInvokableInInbox in interface IWorkflowTaskHandler
      Parameters:
      uc - Current user context for database transactions.
      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.