Package com.mendix.workflows
Interface UserTask
public interface UserTask
Provides an interface for managing a user task of the workflow.
-
Method Summary
-
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 useropenWhenAssigned
- parameter for allowing other users to open the assigned user task page
-
complete
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
-