Interface Workflow

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    SequentialWorkflow

    public interface Workflow
    extends Serializable

    A workflow represents a set of _actions_ to perform on an document collection. Actions fall into one or more of the following three categories:

    1. Modify - The action modifies the documents in the collection, e.g. adds new annotations or attributes.
    2. Compute - The action generates information that is added to the Context for use by downstream actions.
    3. Output - The action generates an output for consumption by external processes and/or downstream actions.

    Actions share a common key-value memory store, called a Context, in which information they require or they generate can be added.

    • Method Detail

      • getStartingContext

        Context getStartingContext()
        Gets starting context.
        Returns:
        the starting context
      • getType

        String getType()
        Gets type.
        Returns:
        the type
      • setStartingContext

        void setStartingContext​(Context context)
        Sets starting context.
        Parameters:
        context - the context