Skip to main content

Workflow Objects

stages

Workflow class in Projects.

get_stage

Returns a stage of the Workflow by its name or UUID. Pass type_ to check the stage’s type and to get the matching stage class (for example AnnotationStage), so that your editor knows which methods the stage has. Arguments:
  • name - The name of the stage, as shown in the Workflow.
  • uuid - The UUID of the stage.
  • type_ - The expected stage class, for example AnnotationStage or ReviewStage.
Returns: The matching stage, as an instance of its stage class. Raises:
  • ValueError - If no stage has the given name or UUID.
  • AssertionError - If the stage is not of the class given in type_.