Interface UserTask


public interface UserTask
Provides an interface for managing a user task of the workflow.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    complete(String outcome)
    Completes the user task with a given outcome.
    Gets the user task mendix object.
    Gets the workflow of the user task.
    void
    Opens the user task page.
    void
    openPage(boolean assignOnOpen, boolean openWhenAssigned)
    Opens the user task page.
  • Method Details

    • getMendixObject

      IMendixObject getMendixObject()
      Gets the user task mendix object.
      Returns:
      the user task mendix object
    • openPage

      void openPage()
      Opens the user task page. This method assigns the user task to the current user if the task is not assigned and prevents opening (resulting in an exception) when the task already assigned to someone else.
    • openPage

      void openPage(boolean assignOnOpen, boolean openWhenAssigned)
      Opens the user task page.
      Parameters:
      assignOnOpen - parameter for assigning the task page automatically to the current user
      openWhenAssigned - parameter for allowing other users to open the assigned user task page
    • complete

      void complete(String outcome)
      Completes the user task with a given outcome.
      Parameters:
      outcome - outcome of the task
    • getWorkflow

      Workflow getWorkflow()
      Gets the workflow of the user task.
      Returns:
      the workflow of the user task