Package com.mendix.workflows
Interface WorkflowDefinition
public interface WorkflowDefinition
Provides an interface for working with workflow definitions.
-
Method Summary
Modifier and TypeMethodDescriptioninstantiate(IContext context, IMendixObject workflowContext) Instantiates a new workflow and returns the object representing it.voidLocks the workflow definition for the specified workflow name.voidUnlocks the workflow definition for the specified workflow name.
-
Method Details
-
instantiate
Instantiates a new workflow and returns the object representing it.- Parameters:
context- the context in which to create the workflowworkflowContext- the context parameter object to associate with the workflow- Returns:
- the instantiated workflow
-
lock
Locks the workflow definition for the specified workflow name.- Parameters:
context- the context in which to lock the definitionpauseAllWorkflows- indicates whether to pause all workflow instances with the same definition- Throws:
UserException- if the workflow definition has already been locked
-
unlock
Unlocks the workflow definition for the specified workflow name.- Parameters:
context- the context in which to unlock the definitionresumeAllPausedWorkflows- indicates whether to resume all paused workflow instances with the same definition- Throws:
UserException- if the workflow definition is not locked
-