Package com.mendix.workflows
Interface Workflows
public interface Workflows
Provides an interface to the workflow component of the runtime server.
-
Method Summary
Modifier and TypeMethodDescriptiongetUserTask
(IContext context, IMendixObject userTask) Retrieves the user task object for a given user task context object.getWorkflow
(IContext context, IMendixObject workflow) Retrieves the workflow object.instantiate
(IContext context, String workflowName, IMendixObject workflowContext) Instantiates new workflow.void
lockWorkflowDefinition
(IContext context, String workflowName, boolean pauseAllWorkflows) Locks the workflow definition for the given workflow name.void
unlockWorkflowDefinition
(IContext context, String workflowName, boolean resumeAllPausedWorkflows) Unlocks the workflow definition for the given workflow name.
-
Method Details
-
instantiate
Instantiates new workflow.- Parameters:
context
- the contextworkflowName
- name of the workflowworkflowContext
- workflow parameter context- Returns:
- the instantiated workflow
-
getWorkflow
Retrieves the workflow object.- Parameters:
context
- the contextworkflow
- the workflow context object- Returns:
- the workflow object
-
lockWorkflowDefinition
Locks the workflow definition for the given workflow name.- Parameters:
context
- the contextworkflowName
- name of the workflowpauseAllWorkflows
- parameter for pausing the workflow instances of the given workflow's definition- Throws:
UserException
- if the workflow definition has been already locked
-
unlockWorkflowDefinition
void unlockWorkflowDefinition(IContext context, String workflowName, boolean resumeAllPausedWorkflows) Unlocks the workflow definition for the given workflow name.- Parameters:
context
- the contextworkflowName
- name of the workflowresumeAllPausedWorkflows
- parameter for resuming the workflow instances of the given workflow's definition- Throws:
UserException
- if the workflow definition is not locked
-
getUserTask
Retrieves the user task object for a given user task context object.- Parameters:
context
- the contextuserTask
- the user task context object- Returns:
- the user task object
-