Interface WorkflowDefinitionReader


public interface WorkflowDefinitionReader
Interface for reading workflow definitions from various input sources. WorkflowReader provides a way to parse workflow definitions from different formats (such as YAML, JSON, XML) and convert them into Workflow objects.
Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    init(ExtensionProvider extensionProvider, Properties properties)
    Initializes the reader with the necessary dependencies and configuration.
    read(Reader reader)
    Reads a workflow definition from the specified reader.
  • Method Details

    • init

      void init(ExtensionProvider extensionProvider, Properties properties)
      Initializes the reader with the necessary dependencies and configuration.
      Parameters:
      extensionProvider - the extension provider for resolving extensions
      properties - the configuration properties for the reader
    • read

      WorkflowDefinition read(Reader reader) throws Exception
      Reads a workflow definition from the specified reader.
      Parameters:
      reader - the input reader containing the workflow definition
      Returns:
      the parsed Workflow object
      Throws:
      Exception - if there's an error reading or parsing the workflow definition