Package com.mendix.workflows
Interface Workflows
public interface Workflows
Provides an interface to the workflow component of the runtime server.
- 
Method SummaryModifier 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.voidlockWorkflowDefinition(IContext context, String workflowName, boolean pauseAllWorkflows) Locks the workflow definition for the given workflow name.voidunlockWorkflowDefinition(IContext context, String workflowName, boolean resumeAllPausedWorkflows) Unlocks the workflow definition for the given workflow name.
- 
Method Details- 
instantiateInstantiates new workflow.- Parameters:
- context- the context
- workflowName- name of the workflow
- workflowContext- workflow parameter context
- Returns:
- the instantiated workflow
 
- 
getWorkflowRetrieves the workflow object.- Parameters:
- context- the context
- workflow- the workflow context object
- Returns:
- the workflow object
 
- 
lockWorkflowDefinitionLocks the workflow definition for the given workflow name.- Parameters:
- context- the context
- workflowName- name of the workflow
- pauseAllWorkflows- parameter for pausing the workflow instances of the given workflow's definition
- Throws:
- UserException- if the workflow definition has been already locked
 
- 
unlockWorkflowDefinitionvoid unlockWorkflowDefinition(IContext context, String workflowName, boolean resumeAllPausedWorkflows) Unlocks the workflow definition for the given workflow name.- Parameters:
- context- the context
- workflowName- name of the workflow
- resumeAllPausedWorkflows- parameter for resuming the workflow instances of the given workflow's definition
- Throws:
- UserException- if the workflow definition is not locked
 
- 
getUserTaskRetrieves the user task object for a given user task context object.- Parameters:
- context- the context
- userTask- the user task context object
- Returns:
- the user task object
 
 
-